/* 
* Auditoría Avanzada S.L. - Main Stylesheet
* Color Palette:
* - Primary: #4B0082 (indigo)
* - Accent: #FFB300 (amber)
* - Background: #FAF9F6 (cream white)
* - Secondary Background: #ECECEC (smoky gray)
* - Text: #1C1C1C (anthracite)
*/

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #1C1C1C;
    background-color: #FAF9F6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #4B0082;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #FFB300;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section spacing */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.6rem;
    color: #4B0082;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background-color: #FFB300;
}

.section-header p {
    font-size: 1.8rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: #ffb300;
    color: #fff;
    box-shadow: 0 0.4rem 0.8rem rgba(75, 0, 130, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ffb300;
    color: #fff;
    transform: translateY(-0.3rem);
    box-shadow: 0 0.6rem 1.2rem rgba(75, 0, 130, 0.3);
}

.btn-secondary {
    background-color: #ECECEC;
    color: #4B0082;
    box-shadow: 0 0.4rem 0.8rem rgba(28, 28, 28, 0.1);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e0e0e0;
    color: #4B0082;
    transform: translateY(-0.3rem);
    box-shadow: 0 0.6rem 1.2rem rgba(28, 28, 28, 0.15);
}

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 5rem;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    font-weight: 600;
    font-size: 1.6rem;
    color: #1C1C1C;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: #FFB300;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

/* ---------- COOKIE POPUP ---------- */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 40rem;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    z-index: 9999;
    border-left: 0.4rem solid #4B0082;
}

.cookie-popup p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* ---------- HERO SECTION ---------- */
.hero {
    padding: 18rem 0 12rem;
    background: linear-gradient(to right, rgba(75, 0, 130, 0.9), rgba(75, 0, 130, 0.7)), url('img/FO1jaG.jpg') center center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* ---------- ABOUT SECTION ---------- */
.about {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 5rem;
    align-items: center;
}

.about-content h3 {
    font-size: 2.8rem;
    color: #4B0082;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-features {
    margin-top: 3rem;
}

.about-features li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFB300;
    font-weight: bold;
}

/* ---------- SERVICES SECTION ---------- */
.services {
    background-color: #ECECEC;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 3rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.3rem solid #ECECEC;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 2.2rem;
    color: #4B0082;
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
    color: #555;
}

.service-price {
    margin: 2rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFB300;
}

/* ---------- BENEFITS SECTION ---------- */
.benefits {
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.benefit-item {
    padding: 3rem;
    background-color: #FAF9F6;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-0.5rem);
}

.benefit-number {
    font-size: 3.6rem;
    font-weight: 800;
    color: #4B0082;
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    font-size: 2rem;
    color: #4B0082;
    margin-bottom: 1rem;
}

/* ---------- CERTIFICATES SECTION ---------- */
.certificates {
    background-color: #ECECEC;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.certificate-item {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 0.3rem solid #FFB300;
}

.certificate-item:hover {
    transform: scale(1.05);
}

.certificate-item h3 {
    font-size: 1.8rem;
    color: #4B0082;
    margin-bottom: 1.5rem;
}

.certificate-item p {
    color: #555;
}

/* ---------- FAQ SECTION ---------- */
.faq {
    background-color: #fff;
}

.faq-list {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 0.1rem solid #ECECEC;
    border-radius: 0.8rem;
    overflow: hidden;
}

.faq-question {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4B0082;
    padding: 2rem;
    cursor: pointer;
    background-color: #FAF9F6;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
}

.faq-item:hover .faq-question {
    background-color: #f5f5f5;
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: #555;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
    background-color: #ECECEC;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 5rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 2.4rem;
    color: #4B0082;
    margin-bottom: 2.5rem;
}

.contact-details li {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.contact-details li strong {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1C1C1C;
}

.map-container {
    margin-top: 3rem;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 1.6rem;
    color: #1C1C1C;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4B0082;
    box-shadow: 0 0 0 0.2rem rgba(75, 0, 130, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-weight: normal;
}

.form-submit {
    margin-top: 3rem;
}

/* Form errors */
.form-errors {
    background-color: #fff5f5;
    border-left: 0.4rem solid #ff6b6b;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.error-message {
    color: #e63946;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you {
    padding: 15rem 0;
    text-align: center;
    background-color: #FAF9F6;
}

.thank-you-content {
    max-width: 60rem;
    margin: 0 auto;
}

.thank-you h1 {
    font-size: 2.4rem;
    color: #4B0082;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 5rem;
    color: #4B0082;
    background-color: #f0f9eb;
    width: 10rem;
    height: 10rem;
    line-height: 10rem;
    border-radius: 50%;
    margin: 2rem auto 3rem;
    border: 0.3rem solid #FFB300;
}

.thank-you p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.thank-you .btn {
    margin-top: 2rem;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #1C1C1C;
    color: #fff;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

footer h3 {
    color: #FFB300;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5rem;
    height: 0.2rem;
    background-color: #4B0082;
}

footer p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #FFB300;
}

.footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 0.1rem solid #333;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: #999;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 991px) {
    html {
        font-size: 60%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero {
        padding: 15rem 0 10rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 2rem;
    }
    
    nav ul {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem 1rem;
    }
    
    .hero h1 {
        font-size: 3.4rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.6rem;
    }
    
    .hero {
        padding: 12rem 0 8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .btn {
        padding: 1rem 2.5rem;
    }
    
    .cookie-popup {
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
} 