/* ==========================================
   destinGO Landing Page - Custom Styles
   ========================================== */

:root {
    --primary: #F93A0B;
    --primary-dark: #d63209;
    --primary-light: #ff6b47;
    --secondary: #1a1a2e;
    --dark: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --gradient: linear-gradient(135deg, #F93A0B 0%, #ff6b47 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   Typography
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Buttons
   ========================================== */

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 58, 11, 0.3);
    background: var(--gradient);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--secondary);
}

.navbar.scrolled .logo-light {
    display: block !important;
}

.navbar.scrolled .logo-dark {
    display: none !important;
}

.navbar:not(.scrolled) .logo-light {
    display: none !important;
}

.navbar:not(.scrolled) .logo-dark {
    display: block !important;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23F93A0B" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    opacity: 0.5;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(249, 58, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 58, 11, 0.05) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================
   Stats Section
   ========================================== */

.stats-section {
    background: white;
    margin-top: -1px;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* ==========================================
   Section Styles
   ========================================== */

.section-badge {
    display: inline-block;
    background: rgba(249, 58, 11, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Features Section
   ========================================== */

.features-section {
    background: white;
}

.feature-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ==========================================
   Convocatorias Section (Synced with App)
   ========================================== */
.convocatorias-section {
    background: var(--light);
}

.mission-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    background: white;
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.country-flag {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eee;
}

/* Semáforo */
.semaforo {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.semaforo.ocupado {
    background-color: #dc3545;
}

.semaforo.proximo {
    background-color: #fd7e14;
}

.semaforo.disponible {
    background-color: #28a745;
}

.semaforo.sin_asignar {
    background-color: #0d6efd;
}

/* Pulso suave para plazas de la ÚLTIMA convocatoria/resolución publicada en el
   BOE. Halo rosa de marca alrededor del semáforo (sea cual sea su color de
   estado), conservando la sombra base. Se explica en la leyenda de la ayuda. */
@keyframes semaforoPulse {
    0%   { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(231, 54, 103, 0.55); }
    70%  { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(231, 54, 103, 0); }
    100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(231, 54, 103, 0); }
}

.semaforo.reciente {
    animation: semaforoPulse 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .semaforo.reciente {
        animation: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(231, 54, 103, 0.6);
    }
}

.semaforo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
}

/* Badges */
.badge-embajada {
    background: #495057;
    color: white !important;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-consulado {
    background: #6c757d;
    color: white !important;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-reper {
    background: #adb5bd;
    color: #212529 !important;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ver-detalles {
    color: #495057 !important;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-ver-detalles:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

.border-top-0 {
    border-top: 0 !important;
}

/* ==========================================
   Pricing Section
   ========================================== */

.pricing-section {
    background: white;
}

.pricing-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price .price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray);
}

.pricing-description {
    color: var(--gray);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li.disabled {
    color: #ccc;
}

/* ==========================================
   Testimonials Section
   ========================================== */

.testimonials-section {
    background: var(--light);
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ==========================================
   FAQ Section
   ========================================== */

.faq-section {
    background: white;
}

.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-section {
    background: var(--light);
}

.contact-form .form-control {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 58, 11, 0.1);
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    background: white;
}

.cta-box {
    background: var(--gradient);
    border-radius: 24px;
    padding: 3rem 4rem;
    color: white;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-text {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ==========================================
   Footer
   ========================================== */

.main-footer {
    background: var(--dark);
    color: white;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================
   Cookie Banner
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================
   Back to Top
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* ==========================================
   Responsive Styles
/* ==========================================
   Responsive Styles
   ========================================== */

/* Intermediate resolution: Compact navbar */
/* Hasta 1199.98, NO 1200: a partir de 1200 el contenedor de Bootstrap pasa de 960 a
   1140 y ya no hace falta encoger la tipografía. El corte en 1200 dejaba justo ese
   ancho con letra pequeña y contenedor grande, sin motivo. Lo que desbordaba de
   verdad era el margen de los enlaces, y ese se anula hasta 1399 en
   landing-redesign.css. */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar-nav {
        margin-right: 0.5rem !important;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem !important;
    }

    .nav-buttons .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-buttons .btn.me-2 {
        margin-right: 0.4rem !important;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-features {
        justify-content: center;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-buttons {
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .cta-box {
        padding: 2rem;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Macbook Mockup CSS */
.macbook-mockup {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.macbook-screen {
    background: #000;
    border-radius: 20px 20px 0 0;
    padding: 3% 3% 0 3%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid #333;
    border-bottom: none;
    z-index: 2;
}

.macbook-display {
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}

.macbook-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    border-radius: 12px 12px 0 0;
}

.macbook-base {
    background: linear-gradient(to bottom, #e6e6e6 0%, #dcdcdc 100%);
    height: 24px;
    width: 120%;
    margin-left: -10%;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.macbook-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40%;
    right: 40%;
    height: 12px;
    background: #bfbfbf;
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animations */
.macbook-mockup.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .macbook-base {
        width: 100%;
        margin-left: 0;
    }
}

/* ==========================================
   iPad Mockup CSS (Apple-style iPad Pro)
   ========================================== */
.ipad-mockup {
    position: relative;
    width: 280px;
    margin: 0 auto;
    perspective: 1000px;
}

.ipad-frame {
    background: linear-gradient(145deg, #1c1c1e 0%, #0a0a0a 100%);
    border-radius: 12px;
    padding: 5px;
    position: relative;
    border: 1px solid #8a8a8e;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Camera iPad (tiny dot) */
.ipad-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 50%;
}

.ipad-screen {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.ipad-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    border-radius: 8px;
}

.ipad-mockup.floating {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* ==========================================
   iPhone Mockup CSS (Apple-style iPhone 15)
   ========================================== */
.iphone-mockup {
    position: relative;
    width: 140px;
    margin: 0 auto;
    perspective: 1000px;
}

.iphone-frame {
    background: linear-gradient(145deg, #1c1c1e 0%, #0a0a0a 100%);
    border-radius: 14px;
    padding: 3px;
    position: relative;
    border: 1px solid #8a8a8e;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Dynamic Island (proportional to device size) */
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24%;
    height: 6px;
    background: #000;
    border-radius: 6px;
    z-index: 10;
}

/* Side button - subtle */
.iphone-frame::after {
    content: '';
    position: absolute;
    top: 35%;
    right: -1.5px;
    width: 1.5px;
    height: 18px;
    background: #666;
    border-radius: 0 1px 1px 0;
}

.iphone-screen {
    background: #000;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/19.5;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 11px;
}

.iphone-mockup.floating {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* ==========================================
   App Store Badges
   ========================================== */
.app-store-badges {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    cursor: default;
    transition: none;
}

.store-badge img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Apple Store badge needs to be bigger to visually match Google Play */
.store-badge img[alt*="App Store"] {
    height: 34px;
}

/* Mobile version of devices */
.hero-devices-mobile {
    text-align: center;
}

.mobile-device-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 280px;
}

.mobile-device-preview .ipad-mockup {
    position: absolute;
    width: 180px;
    left: 50%;
    top: 50%;
    transform: translate(-55%, -50%);
    z-index: 1;
}

.mobile-device-preview .iphone-mockup {
    position: absolute;
    width: 70px;
    left: 50%;
    top: 50%;
    transform: translate(50%, -45%);
    z-index: 2;
}

.app-store-badges-mobile {
    max-width: 100%;
    margin-top: 1rem !important;
}

.app-store-badges-mobile .store-badge img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ==========================================
   Device Group Layout
   ========================================== */
.devices-showcase {
    position: relative;
    width: 100%;
    height: 380px;
}

/* MacBook Pro 14": Screen ratio 16:10.4, overall ~1.6:1 */
.devices-showcase .macbook-mockup {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 400px;
    z-index: 1;
}

/* iPad Pro 11": ~24.8cm x 17.8cm - proportional to MacBook */
.devices-showcase .ipad-mockup {
    position: absolute;
    right: 50px;
    top: 40px;
    width: 180px;
    z-index: 2;
}

/* iPhone 15 Pro: ~14.7cm x 7.1cm - proportional to MacBook */
.devices-showcase .iphone-mockup {
    position: absolute;
    right: 0;
    top: 100px;
    width: 75px;
    z-index: 3;
}

@media (max-width: 1400px) {
    .devices-showcase .macbook-mockup {
        max-width: 360px;
    }

    .devices-showcase .ipad-mockup {
        width: 160px;
        right: 40px;
    }

    .devices-showcase .iphone-mockup {
        width: 68px;
        right: 0;
    }
}

/* Tablet/Medium screens: Scale down but keep same layout */
@media (max-width: 1200px) and (min-width: 992px) {
    .devices-showcase {
        height: 320px;
    }

    .devices-showcase .macbook-mockup {
        max-width: 320px;
    }

    .devices-showcase .ipad-mockup {
        width: 150px;
        right: 30px;
        top: 30px;
    }

    .devices-showcase .iphone-mockup {
        width: 65px;
        right: 0;
        top: 80px;
    }

    /* Badges más abajo en tablet */
    .app-store-badges {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
}

/* Mobile: hide desktop devices, use mobile version */
@media (max-width: 991px) {
    .devices-showcase {
        display: none;
    }

    .app-store-badges {
        display: none;
    }
}

/* ==========================================
   About Section
   ========================================== */

.about-section {
    background: #f8f9fa;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content .lead {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.15rem;
}

.about-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.about-stat {
    text-align: center;
    padding: 1rem;
}

.about-stat strong {
    display: block;
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat span {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image .about-placeholder {
    border: 2px dashed #dee2e6;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Trust Bar
   ========================================== */

.trust-bar {
    background: #fff;
    border-color: #e9ecef !important;
}

.trust-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.trust-item strong {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
}

.trust-item small {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ==========================================
   Testimonials - DEPRECATED (hidden)
   ========================================== */

.testimonials-section {
    display: none;
}