/* 
   Estilos para el sitio web de Auditoría Financiera
   Colores:
   - Primario: #f2e205 (lázurno-amarillo)
   - Acento: #4c1c68 (violeta-arándano)
   - Secundario: #88d8b0 (menta)
   - Fondo: #ffe9dc (melocotón claro)
   - Texto: #333333 (gris grafito)
*/

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffe9dc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #4c1c68;
    transition: color 0.3s ease;
}

a:hover {
    color: #88d8b0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #4c1c68;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f2e205;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #f2e205;
    color: #333333;
}

.btn-primary:hover {
    background-color: #4c1c68;
    color: #fff;
}

.btn-secondary {
    background-color: #88d8b0;
    color: #333333;
}

.btn-secondary:hover {
    background-color: #4c1c68;
    color: #fff;
}

/* Header y navegación */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4c1c68;
}

.logo span {
    color: #f2e205;
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
}

.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #f2e205;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Sección Hero */
.hero {
    background-color: #4c1c68;
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 28, 104, 0.5);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #f2e205;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 0;
}

/* Sección Sobre Nosotros */
.nosotros {
    background-color: #fff;
}

.nosotros-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nosotros-imagen {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nosotros-texto {
    flex: 1;
}

/* Sección Ventajas */
.ventajas {
    background-color: #88d8b0;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.ventaja-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ventaja-item:hover {
    transform: translateY(-10px);
}

.ventaja-item h3 {
    color: #4c1c68;
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.ventaja-item h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #f2e205;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Sección Servicios */
.servicios {
    background-color: #fff;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-item {
    background-color: #ffe9dc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.servicio-item:hover {
    transform: translateY(-10px);
}

.servicio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servicio-item h3, 
.servicio-item p,
.servicio-item .precio {
    padding: 0 1.5rem;
}

.servicio-item h3 {
    margin-top: 1.5rem;
}

.servicio-item .precio {
    font-weight: bold;
    color: #4c1c68;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.servicio-item .btn {
    margin: 1.5rem;
    display: inline-block;
}

/* Sección Casos de Éxito */
.casos {
    background-color: #4c1c68;
    color: #fff;
}

.casos h2 {
    color: #f2e205;
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.caso-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.caso-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.caso-item h3 {
    color: #f2e205;
}

/* Sección Testimonios */
.testimonios {
    background-color: #ffe9dc;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonio-item::before {
    content: '"';
    font-size: 5rem;
    color: #f2e205;
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.5;
}

.testimonio-texto {
    margin-bottom: 1rem;
}

.testimonio-autor {
    text-align: right;
    font-weight: bold;
    color: #4c1c68;
}

/* Sección Contacto */
.contacto {
    background-color: #fff;
}

.contacto-wrapper {
    display: flex;
    gap: 2rem;
}

.formulario-contacto,
.info-contacto {
    flex: 1;
}

.formulario-contacto {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #88d8b0;
    outline: none;
}

.form-group textarea {
    height: 80px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.info-contacto {
    background-color: #ffe9dc;
    padding: 2rem;
    border-radius: 10px;
}

.mapa {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.mapa img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Sección Gracias */
.gracias {
    background-color: #ffe9dc;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gracias-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gracias-content h1 {
    color: #4c1c68;
    margin-bottom: 1.5rem;
}

.gracias-content .btn {
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background-color: #4c1c68;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #f2e205;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f2e205;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(76, 28, 104, 0.95);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-text {
    flex: 3;
}

.cookie-buttons {
    flex: 1;
    text-align: right;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .nosotros, .ventajas, .servicios, .casos, .testimonios, .contacto {
    animation: fadeIn 1s ease-out;
}

/* Media Queries */
@media (max-width: 992px) {
    .nosotros-content {
        flex-direction: column;
    }
    
    .contacto-wrapper {
        flex-direction: column;
    }

    .formulario-contacto {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    #nav-toggle:checked ~ .nav-menu {
        max-height: 300px;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .ventajas-grid,
    .servicios-grid,
    .casos-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
    }
} 