/* ============================================================
   REINICIO BÁSICO
   ============================================================ */
* {
    box-sizing: border-box;
}

/* ============================================================
   ESTILOS GENERALES
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}

.carta-contenedor {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   INTRO PRESENTACIÓN (AJUSTE CENTRADO) - VERSIÓN CORREGIDA
   ============================================================ */

.intro-presentacion {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;  /* 🔹 Cambiar a columna */
    align-items: center;     /* 🔹 Centrar horizontalmente */
    margin: 20px auto 30px auto;
    padding: 10px 15px;
    gap: 15px;              /* 🔹 Espacio entre elementos */
    text-align: center;     /* 🔹 Centrar texto */
}

/* Contenedor de textos */
.intro-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;     /* 🔹 Centrar texto */
}
.intro-texto h1 {
    font-size: 34px;
    color: #75391C;
}

.intro-texto h2 {
    font-size: 26px;
    color: #555;
}

/* Añadir estas propiedades para el contenedor del logo */
.intro-logo {
    display: flex;
    flex-direction: column;
    align-items: center;    /* 🔹 Centrar horizontalmente */
    gap: 10px;              /* 🔹 Espacio entre logo y texto */
}

/* Logo */
.logo-intro {
    width: 150px;           /* 🔹 Tamaño fijo para escritorio */
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Texto debajo del logo */
.intro-logo h1 {
    margin: 0;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 400;      /* 🔹 Normal, no negrita */
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* =============================
   RESPONSIVE (MÓVIL) - CORREGIDO
   ============================= */
@media (max-width: 700px) {
    .intro-presentacion {
        gap: 15px;
    }

    .intro-texto h1 {
        font-size: 28px;
    }

    .intro-texto h2 {
        font-size: 22px;
    }

    .logo-intro {
        width: 130px;       /* 🔹 Tamaño para móvil */
    }
    
    /* Texto del logo en móvil */
    .intro-logo h1 {
        font-size: 18px;
        padding: 0 10px;
    }
}
/* ============================================================
   IMÁGENES DE LA CARTA
   ============================================================ */
.carta-imagen {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   FECHA AUTOMÁTICA
   ============================================================ */
.fecha-actualizacion {
    width: 100%;
    text-align: center;
    color: #01a1db;
    font-size: 14px;
    margin: 0 auto 10px auto;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ============================================================
   BOTONES DE CONTACTO
   ============================================================ */
.contacto-botones {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

.btn-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    gap: 10px;
    transition: 0.2s ease;
    cursor: pointer;
}

/* Azules y verdes */
.btn-telefono { background-color: #0b2346; }
.btn-whatsapp2 { background-color: #25d366; }

/* Iconos dentro de los botones */
.icono-svg svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Hover */
.btn-contacto:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Móvil → botones uno debajo del otro */
@media (max-width: 600px) {
    .contacto-botones {
        flex-direction: column;
    }
    .btn-contacto {
        width: 100%;
    }
}

/* ============================================================
   FOOTER CON LOGO
   ============================================================ */
.footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.logo-footer {
    width: 220px;
    max-width: 70%;
    height: auto;
    opacity: 0.9;
    transition: 0.3s ease;
    display: block;
    margin: 0 auto;
}

.logo-footer:hover {
    opacity: 1;
}

/* Móvil pequeño */
@media (max-width: 380px) {
    .logo-footer {
        width: 150px;
        max-width: 65%;
        margin: 20px auto 10px;
    }
}

/* ============================================================
   BOTÓN SUBIR
   ============================================================ */
.btn-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(1, 161, 219, 0.3);
    color: #01a1db;
    border: 2px solid #01a1db;
    border-radius: 50%;
    font-size: 22px;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s ease;
}

.btn-subir:hover {
    opacity: 1;
    background: rgba(1, 161, 219, 0.5);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .btn-subir {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* ============================================================
   AJUSTES RESPONSIVE GENERALES
   ============================================================ */
@media (max-width: 480px) {
    .carta-contenedor {
        padding: 5px;
    }
    .carta-imagen {
        margin-bottom: 15px;
    }
}
