/* ======================== */
/* RESET Y ESTILOS BASE */
/* ======================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
}

body, p, a, span, button, input, textarea {
    font-family: 'Lato', sans-serif;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* ======================== */
/* HEADER Y NAVEGACIÓN */
/* ======================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: linear-gradient(135deg, #ffbb00, #ff6200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: 50px;
    margin-right: 10px;
}

.logo span {
    color: white;
    font-size: 1.3rem;
}

/* Navegación Desktop */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Botón Hamburguesa - AÑADIDO */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; 
}

/* ======================== */
/* HERO SECTIONS */
/* ======================== */
.hero, .hero2 {
    background-color: #ccc;
    color: white;
    text-align: center;
    padding: 80px 5%;
    position: relative;
}

.hero h1, .hero2 h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p, .hero2 p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================== */
/* BOTONES PRINCIPALES */
/* ======================== */
.boton-llamar {
    display: inline-block;
    background: #FFB703;
    color: #333;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.boton-llamar:hover {
    background: #ff9d00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
    color: white;
}

/* ======================== */
/* SECCIÓN SERVICIOS */
/* ======================== */
.titulo {
    text-align: center;
    font-size: 2.2rem;
    color: #FF6B35;
    margin: 40px 0 30px;
    padding: 0 5%;
}

.seccion {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 5%;
    flex-wrap: wrap;
}

/* CLASE BOTÓN: AHORA ES UN ENLACE (<a>) */
.boton {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #ff6a00;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    
    /* AÑADIDO PARA LA CORRECCIÓN DE CLICKEO Y ALINEACIÓN */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    /* FIN CAMBIOS */
}

.boton:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,106,0,0.2);
    border-color: #ff6a00;
}

.image-button {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.boton:hover .image-button {
    transform: scale(1.1);
}

.boton p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

/* ======================== */
/* SECCIÓN ELEGIRNOS */
/* ======================== */
.contenedor-elegirnos {
    padding: 50px 5%;
    text-align: center;
    background: #f8f9fa;
}

.contenedor-elegirnos h2 {
    color: #FF6B35;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contenedor-elegirnos p {
    font-size: 1.2rem;
    margin: 15px auto;
    max-width: 800px;
    text-align: center;
}

.elegirnos-text {
    color: #FF6B35;
    font-weight: 700;
}

/* ======================== */
/* SECCIÓN DESTACADA */
/* ======================== */
.contenedor-destacado {
    padding: 60px 5%;
    text-align: center;
    background: white;
}

.titulo-destacado {
    color: #FF6B35;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitulo-destacado {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ejemplo-visual {
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.imagen-destacada {
    width: 100%;
    height: auto;
    display: block;
}

.boton-portafolio {
    display: inline-block;
    background: #004D99;
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.boton-portafolio:hover {
    background: #003366;
    transform: translateY(-2px);
}

/* ======================== */
/* SECCIÓN NOSOTROS */
/* ======================== */
.contenedor-sobre {
    padding: 40px 5%;
}

.intro-seccion {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.texto-wrapper {
    flex: 1;
    min-width: 300px;
}

.texto-wrapper h2 {
    color: #FF6B35;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.introduccion {
    background: #fff3e0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #FF6B35;
    margin-bottom: 25px;
    text-align: left;
}

.imagen-introduccion {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.titulo-mision {
    text-align: center;
    color: #FF6B35;
    font-size: 2rem;
    margin: 40px 0 30px;
}

.mision {
    background: #fff3e0;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-left: 4px solid #FF6B35;
}

/* ======================== */
/* PORTAFOLIO */
/* ======================== */
.subtitulo {
    text-align: center;
    color: #FF6B35;
    font-size: 1.8rem;
    margin: 40px 0;
}

.portfolio-section {
    padding: 40px 5%;
}

.portfolio-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.portfolio-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item p {
    padding: 20px;
    text-align: center;
    color: #333;
}

/* ======================== */
/* SERVICIOS DETALLADOS */
/* ======================== */
.contenedor-principal {
    display: flex;
    gap: 30px;
    margin: 40px 5%;
    flex-wrap: wrap;
    justify-content: center;
}

.primer-contenedor, .segundo-contenedor {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #FF6B35;
}

.imagen-pequena {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #FFB703;
    padding: 10px;
}

.primer-contenedor h2, .segundo-contenedor h2 {
    color: #FF6B35;
    margin-bottom: 15px;
}

.primer-contenedor p, .segundo-contenedor p {
    color: #666;
    line-height: 1.6;
}

/* ======================== */
/* PLANES DE MANTENIMIENTO */
/* ======================== */
.contenedor-planes {
    display: flex;
    gap: 25px;
    margin: 50px 5%;
    flex-wrap: wrap;
    justify-content: center;
}

.plan-tarjeta {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.plan-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.plan-tarjeta.principal {
    border-color: #FF6B35;
    transform: scale(1.05);
}

.plan-titulo {
    color: #FF6B35;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.plan-precio {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.plan-tarjeta ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-tarjeta ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.plan-tarjeta ul li:last-child {
    border-bottom: none;
}

.plan-tarjeta ul li.excluido {
    color: #ccc;
    text-decoration: line-through;
}

/* ======================== */
/* FORMULARIO DE CONTACTO */
/* ======================== */
.contenedor-contacto {
    display: flex;
    gap: 40px;
    margin: 40px 5%;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contenedor-contacto form {
    flex: 2;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.contenedor-contacto h2 {
    color: #FF6B35;
    margin-bottom: 20px;
    text-align: center;
}

fieldset {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
}

legend {
    font-weight: 700;
    color: #333;
    padding: 0 10px;
}

label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #FF6B35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    width: 100%;
    background: #FF6B35;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: #e55a25;
    transform: translateY(-2px);
}

.info-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.mapa-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.mapa-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.email-info {
    margin-top: 30px;
}

.email-info h2 {
    color: #FF6B35;
    margin-bottom: 10px;
}

/* ======================== */
/* FOOTER */
/* ======================== */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 5%;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 1.1rem;
}

hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 5%;
}

/* ======================== */
/* MEDIA QUERIES - MOBILE FIRST */
/* ======================== */
@media (max-width: 768px) {
    /* Header Mobile */
    header {
        padding: 12px 4%;
        flex-wrap: nowrap; 
    }
    
    .menu-toggle {
        display: block; /* Muestra el botón de hamburguesa */
    }
    
    nav {
        display: none; 
        position: absolute;
        top: 74px; 
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        background: linear-gradient(135deg, #ffbb00, #ff6200); 
        padding: 0;
        border-radius: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-out; 
        transform: translateY(-100%); 
    }
    
    nav.active {
        display: flex; 
        transform: translateY(0); 
    }
    
    nav a {
        text-align: center;
        padding: 15px;
        background: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    nav a:last-child {
        border-bottom: none;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    /* Hero Mobile */
    .hero, .hero2 {
        padding: 60px 4%;
    }
    
    .hero h1, .hero2 h1 {
        font-size: 2rem;
    }
    
    .hero p, .hero2 p {
        font-size: 1.1rem;
    }
    
    /* Botones Mobile */
    .boton-llamar {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .seccion {
        margin: 30px 4%;
        gap: 20px;
    }
    
    .boton {
        min-width: 100%;
        margin: 0;
    }
    
    /* Textos Mobile */
    .titulo {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }
    
    .contenedor-elegirnos p {
        font-size: 1.1rem;
        text-align: left;
        padding: 0 10px;
    }
    
    /* Nosotros Mobile */
    .intro-seccion {
        flex-direction: column;
        text-align: center;
    }
    
    .imagen-introduccion {
        width: 100%;
        max-width: 100%;
    }
    
    .introduccion, .mision {
        text-align: left;
        padding: 15px;
    }
    
    /* Contacto Mobile */
    .contenedor-contacto {
        flex-direction: column;
        margin: 20px 4%;
    }
    
    .contenedor-contacto form {
        width: 100%;
    }
    
    /* Planes Mobile */
    .contenedor-planes {
        margin: 30px 4%;
    }
    
    .plan-tarjeta {
        min-width: 100%;
    }
    
    .plan-tarjeta.principal {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero2 h1 {
        font-size: 1.7rem;
    }
    
    .hero p, .hero2 p {
        font-size: 1rem;
    }
    
    .titulo {
        font-size: 1.6rem;
    }
    
    .boton {
        padding: 25px 15px;
    }
    
    .image-button {
        width: 60px;
        height: 60px;
    }
}

/* ======================== */
/* UTILIDADES Y ANIMACIONES - AÑADIDO */
/* ======================== */

/* Animación: Fundido de entrada (Fade-in) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases iniciales para los elementos que queremos animar */
.hero, .titulo, .seccion, .contenedor-elegirnos, .contenedor-destacado, footer {
    opacity: 0; 
}

/* Clase que JS añadirá para activar la animación */
.is-visible {
    animation: fadeIn 1s ease-out forwards;
}

/* Clases de utilidad */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}
