
/* ESTILOS GENERALES - MOBILE FIRST */
:root {
    --font-title: 'DM Sans', sans-serif;
    --font-text: 'Open Sans', sans-serif;
    --primary-color: #0066cc;
    --primary-dark: #0055aa;
    --text-dark: #264272;
    --text-medium: #555;
    --text-light: #fffef9;
    --light-bg: #f8f9fa;
    --light-border: #eaeaea;
    --boton-light: #fd9c35;
    --boton-light-hover: #da7f1f;
}

* {
    background-color: #fefdf8;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: var(--font-text);
    color: var(--text-medium);
    line-height: 1.6;
}

/* TIPOGRAFÍA */
h1 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
    
    /* Tamaño responsivo para h1 */
    font-size: clamp(2.5rem, 8vw, 7rem);
}

p {
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 40px;
    background-color: #fefdf8;
}

nav ul {
    color: var(--text-dark);
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-title);
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--boton-light);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* MAIN CONTENT */
main {
    display: flex;
    flex-direction: column;
    padding: 40px 5%;
    align-items: center;
}

.hero-content {
    width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
}

.cta-button {
    background-color: var(--boton-light);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-text);
    font-weight: 400;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,102,204,0.25);
}

.cta-button:hover {
    background-color: var(--boton-light-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,102,204,0.3);
}

.hero-image {
    width: 100%;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* SERVICES SECTION */
.services {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 5% 50px;
}

.service-btn {
    padding: 22px;
    background-color: var(--boton-light);
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 0;
    font-family: var(--font-text);
    font-weight: 400;
    color: white;
}

.service-btn:hover {
    background-color: var(--boton-light-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

/* RESPONSIVE: TABLET Y DESKTOP */
@media (min-width: 768px) {
    /* HEADER */
    .menu-toggle {
        display: none;
    }
    
    /* MAIN CONTENT */
    main {
        flex-direction: row;
        min-height: 80vh;
        align-items: center;
        padding: 60px 5%;
    }
    
    .hero-content {
        flex: 1;
        text-align: left;
        padding-right: 40px;
        margin-bottom: 0;
    }
    
    .hero-image {
        flex: 1;
    }
    
    /* SERVICES SECTION */
    .services {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .service-btn {
        flex: 0 0 calc(50% - 20px);
        margin: 10px;
    }
}

@media (min-width: 992px) {
    /* Ajustes para desktop */
    nav li {
        margin-left: 35px;
    }
    
    .logo img {
        display: flex;
        height: 30px;
        justify-content: center;
        align-items: center;
    }
    
    /* SERVICES SECTION */
    .service-btn {
        flex: 1;
        min-width: 200px;
    }
    
    /* Ajuste fino para h1 */
    h1 {
        font-size: clamp(4rem, 6vw, 7rem);
    }
}

@media (max-width: 767px) {
    /* Menú responsive para móviles */
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        z-index: 99;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav li {
        margin: 0;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Optimización para móviles pequeños */
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 15px;
    }
}
