@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --color_text-primary: #80BFFF;
    --color_text-secundary: #101E2C;
    --color_text-tertiary: #485663;
    --main_color-primary: #383838;
    --main_color-secundary: #F4D4FB;
    --background-color: #FAFBFE;
    --card-background: #ffffff;
    --lowText_font_size: 16px;
    --text_size_title: 40px;
    --text_title_card: 24px;
    --text_paragraph: 16px;
    --box_shadow-primary: 0px 6px 50px -20px rgba(0,0,0,0.2);
}

[data-theme="dark"]{
    --color_text-primary: #80BFFF;
    --color_text-secundary: #ffffff;
    --color_text-tertiary: #c9d1d9;
    --main_color-primary: #80BFFF;
    --main_color-secundary: #1b1f24;
    --background-color: #0f1115;
    --card-background: #1b1f24;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: var(--background-color);
    color: var(--color_text-secundary);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Esto corta cualquier cosa que quiera salirse por la derecha */
    width: 100%;
}

/* HEADER */
header{
    width: 100%;
    height: 100px;
    position: fixed;
    z-index: 100;
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

.container_header{
    max-width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}




.logo img{
    width: 100px;
    max-width: 100%;
    height: auto;
}

/* Estilos de Escritorio para el Menú */
.menu{
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu nav ul{
    display: flex;
    align-items: center;
    list-style: none;
}

.menu nav ul li{
    margin: 0 12px;
}

.menu nav ul li a{
    color: var(--color_text-secundary);
    font-size: var(--lowText_font_size);
    transition: color 0.3s ease;
}

.menu nav ul li a:hover{
    color: var(--color_text-primary);
}

.btn__quote{
    display: block;
    padding: 10px 28px;
    border: 2px solid var(--main_color-primary);
    border-radius: 8px;
    font-weight: 500;
    color: var(--color_text-secundary);
    transition: all 300ms;
}

.menu .socialMedia{
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 10px;
}

.menu .socialMedia img{
    width: 25px;
}

/* --- RESPONSIVE DESIGN --- */

/* Hamburguesa */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 200;
}

.menu-icon span {
    width: 30px;
    height: 3px;
    background: var(--color_text-secundary);
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .menu-icon {
        display: flex;
    }
    
    .logo img {
        width: 80px; /* Logo un pelín más pequeño en móvil */
    }

    /* Panel Lateral */
    .menu {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto */
        width: 300px;
        height: 100vh;
        background: var(--card-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(1, 0, 0, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 150;
        padding: 50px 0;
    }

    .menu.active {
        right: 0; /* Aparece */
    }

    .menu nav ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Ajuste de Secciones */
    .cover, .about {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .text__cover, .text__about {
        padding-right: 0;
    }

    .text__cover h1 {
        font-size: 35px;
    }

    .image__cover img, .image__about img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .text__cover h1 {
        font-size: 28px; /* Bajamos de 36px o 35px a 28px */
        line-height: 1.1;
        word-wrap: break-word; /* Ayuda a que las palabras largas no se salgan */
    }
    
    .text__cover p {
        font-size: 14px;
        margin-top: 20px;
    }
}

/* Animación de la Hamburguesa a X */
.menu-icon.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
.menu-icon.toggle span:nth-child(2) { opacity: 0; }
.menu-icon.toggle span:nth-child(3) { transform: rotate(45deg) translate(-6px, -7px); }

/* (Aquí seguirían tus estilos de Portada, Cards, Switch y About que ya tenías) */

/* SWITCH (Mantenlo igual) */
.container_Mode{ display: flex; align-items: center; }
.theme-switch{ position: relative; display: inline-block; width: 60px; height: 34px; }
.theme-switch input{ display: none; }
.slider{ position: absolute; cursor: pointer; background-color: #ccc; border-radius: 34px; top: 0; left: 0; right: 0; bottom: 0; transition: 0.4s; }
.slider::before{ content: ""; position: absolute; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: 0.4s; }
input:checked + .slider{ background-color: skyblue; }
input:checked + .slider::before{ transform: translateX(26px); }

/* PORTADA */
.container__cover{ padding-top: 180px; padding-bottom: 100px; background: var(--main_color-secundary); }
.cover{ max-width: 1200px; margin: auto; display: flex; align-items: center; padding: 0 20px; gap: 40px; }
.text__cover{ width: 100%; }
.text__cover h1{ font-size: 50px; color: var(--color_text-secundary); line-height: 1.2; }
.text__cover p{ font-size: var(--text_paragraph); margin-top: 30px; color: var(--color_text-tertiary); }

/* CARDS GENERALES */
.container__card-primary{ padding: 100px 0; }
.card__primary{ max-width: 1200px; margin: auto; text-align: center; padding: 0 20px; }
.container__box-cardPrimary{ display: flex; flex-wrap: wrap; justify-content: center; margin-top: 50px; gap: 20px; }
.box__card-primary{ max-width: 350px; background: var(--card-background); padding: 40px 30px; border: 1px solid #e6e6e6; border-radius: 20px; transition: all 300ms; display: flex; flex-direction: column; align-items: center; }
.box__card-primary:hover{ border: 1px solid transparent; box-shadow: var(--box_shadow-primary); transform: translateY(-5px); }

/* ABOUT */
.container__about{ padding: 100px 20px; background: var(--background-color); }
.about{ max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: center; gap: 40px; }
.text__about h1{ color: var(--color_text-secundary); font-weight: 600; font-size: 40px; }
.image__about img{ width: 100%; max-width: 260px; border-radius: 20px; }

/* --- CARDS GENERALES (Restaurado y Corregido) --- */
.container__card-primary{
    padding: 100px 0;
}

.card__primary{
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

/* Estilos para el texto de las tarjetas */
.text__card-primary{
    max-width: 800px;
    margin: auto;
}

.text__card-primary p{
    color: var(--color_text-primary);
    letter-spacing: 4px;
    font-size: var(--text_paragraph);
    font-weight: 500;
}

.text__card-primary h1{
    font-size: var(--text_size_title);
    font-weight: 600;
    color: var(--color_text-secundary);
    margin-top: 10px;
}

/* Contenedor Flex para las tarjetas */
.container__box-cardPrimary{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    gap: 20px;
}

/* Estilo individual de cada tarjeta */
.box__card-primary{
    max-width: 350px;
    background: var(--card-background);
    padding: 40px 30px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    transition: all 300ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 0 transparent;
}

.box__card-primary:hover{
    border: 1px solid transparent;
    box-shadow: var(--box_shadow-primary);
    transform: translateY(-5px);
}

/* --- SOLUCIÓN AL TAMAÑO DE IMAGEN --- */
/* Esta regla es para las tarjetas de "Confianza" */
.box__card-primary img{
    width: 100px;  /* Tamaño base original */
    height: 100px; /* Tamaño base original */
    object-fit: contain; /* Para que no se deformen */
}

/* Títulos y párrafos dentro de las tarjetas */
.box__card-primary h2{
    font-size: var(--text_title_card);
    margin-top: 25px;
    font-weight: 600;
    color: var(--color_text-secundary);
}

.box__card-primary p{
    margin-top: 15px;
    color: var(--color_text-tertiary);
}

/* --- ESTILOS ESPECÍFICOS PARA SERVICIOS --- */
/* Esta regla asegura que las imágenes de "Servicios" no crezcan */
.card__service img{
    width: 100px;  /* Aseguramos el tamaño correcto */
    height: auto;
}

.menu-icon span {
    width: 30px;
    height: 3px;
    background: #80BFFF; /* Color azul claro para que resalte en el fondo oscuro */
    transition: 0.3s;
    border-radius: 2px;
}