* {
    box-sizing: border-box;
}


header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(255, 255, 255);
    align-items: center;
    padding: 10px;
    height: 85px;
    border-bottom: 1px solid #e7e5d3;
    box-sizing: border-box;
}


.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}



.logo {
    display: flex;
    align-items: center;
}



.logo img {
    height: 80px;
    margin-right:  10px;
}



body {
    font-family:'Times New Roman', Times, serif;
    line-height: 200%;
    text-align: justify;
    background-color: rgb(255, 255, 255);
}

main {
    width: 90%;           /* En pantallas pequeñas ocupa el 90% del ancho */
    max-width: 1100px;    /* En pantallas grandes no crece más de 1100px */
    margin: 0 auto;       /* Lo centra horizontalmente */
    padding: 40px 0;      /* Espacio arriba y abajo */
    font-size: 1.1rem;
}

main h1 {
    text-align: center;
    margin-bottom: 30px; /*para que no esté pegado al texto de abajo */
}


main h2 {
    text-align: center;
    margin-bottom: 30px; /*para que no esté pegado al texto de abajo */
}

main h3 {
    text-align: center;
    margin-bottom: 30px; /* para que no esté pegado al texto de abajo */
}


a {
    text-decoration: none;
    color: rgb(0, 0, 0);
}



nav a{
    font-weight: 600;
    padding-right: 10px;
}



nav a:hover {
    color: rgb(171, 171, 171);
}


.tarjeta {
  width: 60%;               /* Ancho fijo de la tarjeta */
  padding: 20px;              /* Espaciado interior */
  margin: 20px auto;          /* Centrado horizontal */
  background-color: rgba(231, 228, 228, 0.8);     /* Fondo blanco */
  border-radius: 15px;        /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra */
  text-align: center;         /* Centra el contenido */
  font-family: 'Times New Roman', Times, serif;
font-size: 1.1rem;
}

#imagenCabecera {
    display: block;
    margin: -30px auto ; /* 20px de espacio arriba/abajo y centrado */
    width: 100%;       /* Ocupa exactamente el mismo ancho que el texto del main */
    max-width: 85%;   /* Evita que se salga del contenedor */
    height: auto;      /* Mantiene la proporción para que no se estire */
}

.imagen {
    display: block;       
    margin: 30px auto;      
    width: 80%;           
    max-width: 260px;       
    height: auto;        
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra */  
}

.imagenSinSombra {
    display: block;       
    margin: 30px auto;      
    width: 80%;           
    max-width: 260px;       
    height: auto;        
   
}

.imagenHorizontal {
    display: block;       
    margin: 30px auto;      
    width: 80%;           
    max-height: 360px;       
    width: auto;    
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra */      
}

.formularioContacto {
    color: rgba(127, 103, 66, 0.851);
    font-weight: bold;
    text-decoration: none;
}

.formularioContacto a {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}
.formularioContacto a:hover {
    color: #5c4019; /* Cambia de color al pasar el ratón */
    transform: scale(1.1); /* Lo hace un 10% más grande */
}

@media (max-width: 768px) {

    /* Ocultamos el menú horizontal */
    nav {
        display: none;
    }

    /* Mostramos la hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Overlay (estructura) */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.97);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        font-size: 1.2rem;
        z-index: 1000;
    }
    }

    /* Visible cuando está activo */
    .menu-overlay.activo {
        display: flex;
    }

    /* Enlaces del menú */
    .menu-overlay a {
        font-weight: 600;
    }

    /* Texto general más pequeño en móvil */
    body {
        font-size: 0.95rem;
    }

    main {
        font-size: 1rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    #iconoWhatsapp {
        width: 28px;
    }


.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-family: sans-serif;
}

.footer-line {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
    width: 60%; /* Línea elegante, no ocupa todo el ancho */
}

.footer-copy {
    font-size: 14px;
    margin: 0;
}

.footer-author {
    font-size: 12px;
    font-style: italic;
    opacity: 0.7;
    margin-top: 5px;
}

.footer-author a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: color 0.2s;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

#iconoWhatsapp {
    width: 35px;
    height: auto;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}