/* RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1470AF;
    --primary-dark: #0e4e7a;
    --secondary: #8EB6DC;
    --light: #f8f9fa;
    --dark: #131313;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    font-size: 14px; 
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Estilos para la sección de preguntas frecuentes */
        .faq-section {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            margin-top: 40px;
        }
        
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
        }
        
        .faq-item {
            margin-bottom: 20px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #eaeaea;
            transition: all 0.3s ease;
        }
        
        .faq-item:hover {
            border-color: #3498db;
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
        }
        
        .faq-question {
            padding: 20px 25px;
            background: #f8fafc;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 1.1rem;
            color: #2c3e50;
            transition: background 0.3s ease;
        }
        
        .faq-question:hover {
            background: #edf7ff;
        }
        
        .faq-question i {
            transition: transform 0.3s ease;
            color: #3498db;
            font-size: 1.2rem;
        }
        
        .faq-answer {
            padding: 0 25px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
            background: white;
            color: #555;
            line-height: 1.7;
        }
        
        .faq-answer p {
            padding: 20px 0;
        }
        
        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }
        
        .faq-item.active .faq-answer {
            max-height: 500px;
            border-top: 1px solid #f0f0f0;
        }
        
        .faq-decoration {
            text-align: center;
            margin-top: 40px;
            color: #7f8c8d;
            font-size: 4rem;
            opacity: 0.1;
        }

        .btn-small {
    padding: 2px 5px; /* Ajusta el padding para hacer el botón más pequeño */
    font-size: 10px; /* Ajusta el tamaño de la fuente si es necesario */
  }

/* HERO SECTION */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, rgba(20, 112, 175, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-buttons img {
    height: 52px;
    width: auto;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;     
    flex-direction: column;  
}

.stars {
    color: gold;
    font-size: 1.2rem;
}

/* --- ESTILOS PARA LA NUBE/TOOLTIP --- */

/* 1. El contenedor de la imagen que usaremos como ancla */
.language-icon-wrapper {
    position: relative; /* ¡Crucial! Permite posicionar la nube respecto a este div */
    display: inline-block; /* Asegura que el div solo ocupe el espacio de la imagen */
}

/* 2. La nube (el cuerpo principal del tooltip) */
/* Usamos ::after para crear un elemento "virtual" con CSS */
.language-icon-wrapper::after {
    content: 'Se habla español\A On parle français\A English spoken\AWir sprechen Deutsch'; /* El texto \A crea saltos de línea */
    white-space: pre; /* Hace que los saltos de línea (\A) funcionen */
    
    /* Apariencia de la nube */
    position: absolute;
    bottom: calc(100% + 12px); /* Se posiciona 12px por encima de la imagen */
    left: 50%;
    transform: translateX(-50%); /* Centra la nube horizontalmente */
    background-color: #2c3e50; /* Un color oscuro y elegante */
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: left;
    width: max-content; /* El ancho se ajusta al contenido */
    
    /* Animación de aparición */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px); /* Empieza 10px más abajo para un efecto de "flote" */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none; /* Evita que el tooltip interfiera con el ratón */
    z-index: 10;
}

/* 3. La flecha de la nube */
/* Usamos ::before para crear el triángulo */
.language-icon-wrapper::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px); /* Lo posicionamos entre la imagen y la nube */
    left: 50%;
    transform: translateX(-50%);
    
    /* El truco para crear un triángulo con bordes */
    border: 5px solid transparent;
    border-top-color: #2c3e50; /* Solo el borde superior tiene color */
    
    /* Animación (sincronizada con la nube) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 10;
}

/* 4. El efecto al pasar el ratón */
/* Cuando pasas el ratón por el .rating, mostramos la nube y la flecha */
.rating:hover .language-icon-wrapper::after,
.rating:hover .language-icon-wrapper::before {
    opacity: 1;
    visibility: visible;
}

/* Hacemos que la nube "flote" hacia su posición final */
.rating:hover .language-icon-wrapper::after {
    transform: translateX(-50%);
}




@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-icon {
    max-width: 100px;
    margin-top: 15px;
    opacity: 0.8;
    transform: translateY(5px); /* Empieza 5px más abajo de su posición final */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    cursor: pointer;
}

.rating:hover .language-icon {
    opacity: 1;
    transform: translateY(0); /* Vuelve a su posición original */
}

.hero-img {
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* SERVICES SECTION */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #e8e8e8;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 180px;
    margin: 0 auto 1rem;
}

.service-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.service-title {
    margin-bottom: 1rem;
}

/* HOW IT WORKS SECTION */
.how-it-works {
    background: linear-gradient(135deg, rgba(142, 182, 220, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background: #e8e8e8;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* ABOUT SECTION */
.social-link {
    background-color: #fff;
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1565c0;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.step-icon.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1565c0;
    transition: transform 0.3s ease;
}

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

.stat-number.animate {
    transform: scale(1.1);
}

.scroll-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-image {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}

.about-content {
    flex: 2 1 400px;
    text-align: left;
    min-width: 280px;
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-video:hover {
    transform: scale(1.02);
}

.about-info {
    text-align: center;
    min-width: 240px;
}

.about-info .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    flex: 1;
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* TESTIMONIALS SECTION */
.testimonials {
    background-color: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: rgba(20, 112, 175, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray);
    margin-bottom: 0;
}

/* CTA SECTION */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-light:hover {
    background-color: var(--light-gray);
}

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-link {
    margin-bottom: 0.75rem;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-icon {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.social-icon:hover {
  filter: grayscale(0%);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.precio-servicio {
    font-weight: bold;
    color: #1565c0;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* CLOUDS */
.clouds-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cloud {
  background: url('../images/tiritablanca.jpg') no-repeat center/cover;
  color: #1565c0;
  padding: 1rem 1.5rem;
  border-radius: 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 0.95rem;
  transition: transform 1s ease-in-out;
  flex: 1 0 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cloud:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero {
        padding: 8rem 0 3rem; /* Aumentamos padding superior */
    }

@media (max-width: 480px) {
    .hero {
        padding: 7rem 0 2rem; /* Un poco menos de padding superior */
    }
    
    .hero-title {
        font-size: 1.8rem; /* Reducimos un poco el tamaño del título */
    }
    
    .hero-buttons {
        flex-direction: column; /* Botones en columna */
        align-items: center;
    }
    
    .cloud {
        flex: 1 0 100%;
        max-width: 100%;
    }
}

@keyframes subtleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image, .about-image, .about-content {
        width: 100%;
        padding: 0;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-list.active {
        transform: translateX(0);
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
/* Ajustes de tamaño de fuente */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .stats {
        flex-direction: column;
    }

    .cloud {
        flex: 1 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    /* CORRECCIÓN PARA EL HERO EN MÓVILES */
    .hero {
        padding: 8rem 0 3rem; /* Padding superior aumentado */
    }
}