/* GuardLock - Estilos Principal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero .highlight {
    background: rgba(255, 193, 7, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.logo-container {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.logo-hero {
    height: 160px;
    width: auto;
    /* Hacer transparente el blanco */
    mix-blend-mode: multiply; /* O darken */
    filter: drop-shadow(0 15px 50px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.logo-hero:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 20px 60px rgba(0, 212, 255, 0.7));
}

.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}

.logo-footer {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 212, 255, 0.3));
}

.logo-footer:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 212, 255, 0.5));
}

/* Animación logo flotante */
@keyframes floatLogo {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

/* Loading dots */
.loading-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(0.8); 
    }
}

@media (max-width: 768px) {
    .logo-hero {
        height: 120px;
    }
}

/* Animations CSS */
@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Responsive adjustments for inline-styled elements */
@media (max-width: 768px) {
    div[style*="min-height: 700px"] {
        min-height: 600px !important;
        padding: 60px 30px !important;
    }
    
    div[style*="width: 200px; height: 200px"] {
        width: 160px !important;
        height: 160px !important;
    }
    
    div[style*="width: 170px; height: 170px"] {
        width: 140px !important;
        height: 140px !important;
    }
    
    h1[style*="font-size: 2.8em"] {
        font-size: 2.2em !important;
    }
}

/* Email Form */
.email-form {
    background: white;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    max-width: 550px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease;
}

.email-form input {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 1em;
    outline: none;
    border-radius: 50px;
    color: #333;
}

.email-form button {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-form button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.email-form button:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

.email-form input:focus-visible {
    outline: 2px solid #1976D2;
    outline-offset: -2px;
}

.form-note {
    font-size: 0.9em;
    margin-top: 15px;
    opacity: 0.9;
}

.social-proof {
    margin-top: 30px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFC107;
}

/* Stats Section */
.stats {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #F44336;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 1.1em;
    color: #666;
}

/* Problem Section */
.problem {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1976D2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: #5d5e60;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-card {
    background: #FFF3E0;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #FF6B35;
}

.problem-card .icon {
    font-size: 2.5em;
    color: #FF6B35;
    margin-bottom: 15px;
}

.problem-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #E65100;
}

.problem-card p {
    color: #666;
    line-height: 1.8;
}

/* Hero Features */
.hero-features {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.hero-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.hero-feature:last-child {
    margin-bottom: 0;
}

.hero-feature.reverse {
    direction: rtl;
}

.hero-feature.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2.5em;
    color: #1976D2;
    margin-bottom: 20px;
}

.feature-content .badge {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-content p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 25px;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
}

.feature-list li i {
    color: #4CAF50;
    font-size: 1.3em;
    flex-shrink: 0;
}

.feature-visual {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.phone-mockup {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    margin: 0 auto;
}

.phone-screen {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

.screen-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.screen-header h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.screen-content {
    padding: 25px;
}

.alert-box {
    background: #FFEBEE;
    border: 2px solid #F44336;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.alert-box .alert-icon {
    font-size: 3em;
    color: #F44336;
    margin-bottom: 10px;
}

.alert-box h4 {
    color: #C62828;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.alert-box p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.family-avatars {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    position: relative;
}

.avatar .status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    border: 3px solid white;
}

.panic-button {
    background: #F44336;
    color: white;
    padding: 25px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(244, 67, 54, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.panic-button i {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Solution Section */
.solution {
    padding: 80px 20px;
    background: #d2eae6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #1976D2;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.feature-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 15px;
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E3F2FD 0%, #858cc3 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 3em;
    color: #1976D2;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
}

.author-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.author-info p {
    color: #999;
    font-size: 0.9em;
}

.stars {
    color: #FFC107;
    margin-top: 15px;
    font-size: 1.2em;
}

/* Coming Soon */
.coming-soon {
    padding: 80px 20px;
    background: #d1e9f0;
}

.coming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.coming-card {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px dashed #FF9800;
}

.coming-card .icon {
    font-size: 3em;
    color: #FF9800;
    margin-bottom: 15px;
}

.coming-card h3 {
    font-size: 1.4em;
    color: #E65100;
    margin-bottom: 15px;
}

.coming-card p {
    color: #666;
    line-height: 1.8;
}

.coming-badge {
    background: #FF9800;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: #f8f9fa;
}

.steps {
    max-width: 800px;
    margin: 50px auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(25, 118, 210, 0.3);
}

.step-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1976D2;
}

.step-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1em;
}

/* Pricing */
.pricing {
    padding: 80px 20px;
    background: #b4c9f3;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 50px auto;
}

.pricing-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    background: white;
    border: 3px solid #1976D2;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.plan-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1976D2;
}

.plan-price {
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin: 20px 0;
}

.plan-price span {
    font-size: 0.4em;
    color: #666;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: #4CAF50;
    font-size: 1.2em;
}

.plan-button {
    background: #1976D2;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 118, 210, 0.4);
}

.plan-button:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

.featured .plan-button {
    background: #FF6B35;
}

.featured .plan-button:hover {
    background: #E55A2B;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: #212121;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Success Message */
.success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    animation: slideDown 0.5s ease;
}

.success-message.show {
    display: block;
}

/* Error Message */
.error-message {
    display: none;
    background: #F44336;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.error-message::before {
    content: '⚠️ ';
    margin-right: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.email-form button.loading .spinner {
    display: inline-block;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

    .email-form {
        flex-direction: column;
        padding: 15px;
    }

    .email-form button {
        width: 100%;
        margin-top: 10px;
    }

    .section-title {
        font-size: 2em;
    }

    .step {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .hero-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-feature.reverse {
        direction: ltr;
    }

    .feature-content h2 {
        font-size: 2em;
    }
}

/* ========================================
   HERO FEATURES - ALINEACIÓN PERFECTA
   ======================================== */

.hero-features {
    background: #f8f9fa; /* Fondo suave que pediste */
    padding: 80px 0;
}

.hero-feature {
    display: flex;
    align-items: center; /* Alineación vertical centrada */
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* Alternar posición en secciones impares/pares */
.hero-feature.reverse {
    flex-direction: row-reverse;
}

/* ========================================
   CONTENIDO DE TEXTO
   ======================================== */

.feature-content {
    flex: 1;
    max-width: 550px;
}

.feature-content .badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-content h2 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content > p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ========================================
   LISTA DE CARACTERÍSTICAS
   ======================================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start; /* Alinea el icono con la primera línea */
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li i {
    color: #4CAF50;
    font-size: 1.2em;
    margin-top: 3px;
    flex-shrink: 0; /* El icono no se encoge */
}

.feature-list li strong {
    color: #333;
}

/* ========================================
   MOCKUP - TAMAÑO FIJO Y CONSISTENTE
   ======================================== */

.feature-visual {
    flex: 0 0 420px; /* TAMAÑO FIJO para TODOS los mockups */
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 100%;
    max-width: 350px; /* MISMO tamaño para TODOS */
    aspect-ratio: 9 / 19.5; /* Proporción iPhone */
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Notch del iPhone */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========================================
   CONTENIDO DE LAS PANTALLAS
   ======================================== */

.screen-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 50px 20px 20px; /* Espacio para el notch */
    text-align: center;
}

.screen-header h3 {
    font-size: 1.2em;
    margin: 0 0 5px 0;
}

.screen-header p {
    margin: 0;
    opacity: 0.9;
}

.screen-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ========================================
   ELEMENTOS ESPECÍFICOS
   ======================================== */

.alert-box {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.alert-box h4 {
    color: #E65100;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.alert-box p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.family-avatars {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.3em;
    position: relative;
    flex-shrink: 0;
}

.status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
}

.panic-button {
    background: linear-gradient(135deg, #F44336, #C62828);
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
    cursor: pointer;
}

.panic-button i {
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes progress {
    from { width: 0; }
    to { width: 80%; }
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out;
}

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .hero-feature {
        flex-direction: column !important;
        gap: 50px;
        margin-bottom: 80px;
        text-align: center;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
    
    .feature-visual {
        flex: 0 0 auto;
    }
    
    .phone-mockup {
        max-width: 300px;
    }
    
    .feature-list li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-feature {
        padding: 0 20px;
    }
    
    .feature-content h2 {
        font-size: 1.75rem;
    }
    
    .phone-mockup {
        max-width: 280px;
    }
}

/* ========================================
   FIX COMPLETO: SAFARI, EDGE Y MÓVIL
   Añadir al FINAL de styles.css
   ======================================== */

/* RESET de hero-feature para compatibilidad total */
.hero-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 40px;
    flex-wrap: nowrap;
}

.hero-feature.reverse {
    flex-direction: row-reverse;
}

/* CONTENIDO DE TEXTO - Fijo */
.feature-content {
    flex: 1 1 50%;
    max-width: 550px;
    min-width: 0; /* Importante para Safari */
}

.feature-content h2 {
    font-size: 2.5em;
    color: #1976D2;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #555;
}

.feature-list li i {
    color: #4CAF50;
    font-size: 1.3em;
    flex-shrink: 0;
    margin-top: 3px;
}

/* VISUAL DEL MOCKUP - Tamaño fijo y centrado */
.feature-visual {
    flex: 0 0 420px; /* Ancho fijo */
    width: 420px;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* Fix para Safari */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* MOCKUP DEL TELÉFONO - Tamaño consistente */
.phone-mockup {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 320px; /* MISMO tamaño para todos */
    margin: 0 auto;
    /* Fix para Safari */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* PANTALLA DEL TELÉFONO */
.phone-screen {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    position: relative;
    width: 100%;
    /* Fix para Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.screen-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.screen-content {
    padding: 25px;
}

/* ========================================
   SOLUCIÓN DEFINITIVA - OVERFLOW EN SAFARI
   Reemplaza TODO el CSS anterior relacionado con mockups
   ======================================== */

/* CONTENEDOR PRINCIPAL DEL MOCKUP */
.phone-mockup {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    /* CRÍTICO: Establecer altura fija */
    height: 650px;
    max-height: 650px;
    /* Forzar overflow hidden */
    overflow: hidden !important;
    position: relative;
    /* Safari fix */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    isolation: isolate;
}

/* PANTALLA DEL TELÉFONO - ALTURA CONTROLADA */
.phone-screen {
    background: white;
    border-radius: 20px;
    width: 100%;
    /* CRÍTICO: Altura exacta del contenedor menos padding */
    height: 620px;
    max-height: 620px;
    /* FORZAR overflow hidden */
    overflow: hidden !important;
    position: relative;
    /* Safari específico */
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* CONTENIDO DENTRO - IMPORTANTE: min-height en lugar de height */
.phone-screen > div,
.phone-screen > [style*="height: 100%"],
.phone-screen [style*="min-height"] {
    min-height: auto !important;
    height: auto !important;
    max-height: 620px !important;
    overflow: hidden !important;
}

/* Header de pantalla */
.screen-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

/* Contenido scrollable si es necesario */
.screen-content {
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(620px - 100px);
    -webkit-overflow-scrolling: touch;
}

/* FIX ESPECÍFICO PARA SPLASH SCREEN (el que se ve en la captura) */
.phone-screen [style*="display: flex"][style*="flex-direction: column"] {
    height: 100% !important;
    max-height: 620px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Ajustar padding interno del splash */
.phone-screen [style*="padding: 60px"] {
    padding: 40px 30px !important;
    box-sizing: border-box !important;
}

/* Logo dentro del splash */
.phone-screen [style*="width: 200px"][style*="height: 200px"] {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 30px !important;
}

.phone-screen [style*="width: 170px"][style*="height: 170px"] {
    width: 140px !important;
    height: 140px !important;
}

/* Texto del splash */
.phone-screen h1[style*="font-size: 2.5em"],
.phone-screen h1[style*="font-size: 2.8em"] {
    font-size: 2em !important;
    margin-bottom: 10px !important;
}

/* Safari iOS específico */
@supports (-webkit-touch-callout: none) {
    .phone-mockup {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: transform;
        contain: layout style paint;
    }
    
    .phone-screen {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        contain: layout style paint;
    }
    
    /* Forzar altura en iOS */
    .phone-screen > * {
        max-height: 620px !important;
    }
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 640px) {
    .phone-mockup {
        max-width: 280px;
        height: 580px;
        max-height: 580px;
    }
    
    .phone-screen {
        height: 550px;
        max-height: 550px;
    }
    
    .phone-screen > div,
    .phone-screen > [style*="height: 100%"] {
        max-height: 550px !important;
    }
    
    .screen-content {
        max-height: calc(550px - 80px);
        padding: 20px;
    }
    
    .screen-header {
        padding: 35px 15px 15px;
    }
    
    /* Ajustes splash en móvil */
    .phone-screen [style*="padding: 60px"],
    .phone-screen [style*="padding: 40px"] {
        padding: 30px 20px !important;
    }
    
    .phone-screen [style*="width: 200px"][style*="height: 200px"],
    .phone-screen [style*="width: 160px"][style*="height: 160px"] {
        width: 130px !important;
        height: 130px !important;
    }
    
    .phone-screen [style*="width: 170px"][style*="height: 170px"],
    .phone-screen [style*="width: 140px"][style*="height: 140px"] {
        width: 110px !important;
        height: 110px !important;
    }
}

@media (max-width: 375px) {
    .phone-mockup {
        max-width: 260px;
        height: 530px;
        max-height: 530px;
    }
    
    .phone-screen {
        height: 500px;
        max-height: 500px;
    }
    
    .phone-screen > div,
    .phone-screen > [style*="height: 100%"] {
        max-height: 500px !important;
    }
    
    .screen-content {
        max-height: calc(500px - 70px);
        padding: 15px;
    }
}

/* Fix global para todos los elementos con estilos inline problemáticos */
.phone-screen * {
    box-sizing: border-box !important;
}

/* Asegurar que nada se salga */
.phone-mockup *,
.phone-screen * {
    max-width: 100%;
}