/**
 * Estilos principales para AuditFin Madrid
 * Paleta de colores:
 * - #1C1B2D (indigo profundo)
 * - #FCF8E8 (fondo cremoso)
 * - #D8572A (terracota brillante para acentos)
 * - #F9A826 (amarillo solar para botones)
 * - #2F4858 (grafito apagado)
 * - #F5F7FA (secciones de fondo)
 */

/* === Reseteo y base === */
:root {
    --color-primary: #1C1B2D;
    --color-background: #FCF8E8;
    --color-accent: #D8572A;
    --color-button: #F9A826;
    --color-secondary: #2F4858;
    --color-light: #F5F7FA;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-button);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Tipografía === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 8rem;
    height: 0.4rem;
    background-color: var(--color-accent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* === Botones === */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Header y Navegación === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    color: white;
}

.logo span {
    color: var(--color-accent);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 2.5rem;
}

.nav-list li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-button);
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list .cta-button a::after {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* === Secciones === */
section {
    padding: 8rem 0;
}

.section-light {
    background-color: var(--color-background);
}

.section-dark {
    background-color: var(--color-primary);
    color: white;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-accent {
    background-color: var(--color-accent);
    color: white;
}

.section-light-grey {
    background-color: var(--color-light);
}

/* === Hero Section === */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(28, 27, 45, 0.8), rgba(28, 27, 45, 0.8)), url('../img/PYAuZC.jpg') no-repeat center center;
    background-size: cover;
    margin-top: 0;
    padding-top: 8rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5.6rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.9s;
}

.hero-buttons .btn-primary {
    margin-right: 1.5rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    margin-top: 0;
}

.about-features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-image {
    margin: -4rem -3rem 2rem;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: 0;
    background-color: var(--color-accent);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: white;
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.service-card:hover .service-icon {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background-color: var(--color-light);
    color: var(--color-accent);
    font-size: 3rem;
    border-radius: 50%;
    transition: var(--transition);
}

.service-card h3 {
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card p {
    transition: var(--transition);
    margin-bottom: 2rem;
}

/* === Testimonials Section === */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    position: relative;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial::before {
    content: '"';
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
    line-height: 1;
}

.testimonial-content {
    padding-left: 3rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 1.5rem;
}

.testimonial-role {
    color: var(--color-accent);
    font-style: italic;
    font-size: 1.4rem;
}

/* === Process Section === */
.process-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    counter-reset: step-counter;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-light);
    z-index: 0;
}

.step-number {
    width: 10rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background-color: var(--color-light);
    color: var(--color-primary);
    font-size: 3.6rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background-color: var(--color-button);
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 1rem;
}

/* === Contact Form Section === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    min-width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    color: var(--color-accent);
    border-radius: 50%;
    margin-right: 1.5rem;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.contact-map {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    max-width: 650px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 87, 42, 0.1);
}

.form-select {
    height: 4.3rem;
    background-color: white;
    padding-right: 3rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232F4858' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 16px 12px;
    appearance: none;
}

.form-check {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
    border: 1px solid #ced4da;
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-check-label {
    font-size: 1.3rem;
}

.form-check-label a {
    text-decoration: underline;
}

.form-submit {
    margin-top: 1.5rem;
}

/* === Footer === */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 6rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 2rem;
}

.footer-contact h4,
.footer-legal h4 {
    color: white;
    margin-bottom: 2rem;
}

.footer-contact ul,
.footer-legal ul {
    list-style: none;
}

.footer-contact ul li,
.footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-contact ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-contact ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--color-button);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 2rem;
}

.cookie-content a {
    color: var(--color-button);
    text-decoration: underline;
}

/* === Trust Section === */
.trust-content {
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.trust-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trust-number {
    font-size: 4.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.trust-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* === Responsive Design === */
@media screen and (max-width: 992px) {
    html {
        font-size: 60%;
    }

    .about-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }

    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 4.2rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .menu-icon {
        display: block;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-list {
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        padding: 2rem;
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle:checked ~ .nav-list {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 3.6rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-primary {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 80%;
    }

    .hero-buttons .btn-secondary {
        width: 80%;
    }

    .process-container {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 3rem 2rem;
    }

    .section-title::after {
        margin-bottom: 2rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
} 