/* ========================================
   DOMAIN - Servicios Contables
   Diseño Profesional y Adaptativo
======================================== */

:root {
    --deep-blue: #001F54;
    --turquoise: #00C2A8;
    --light-almond: #FFE9D6;
    --dark-anthracite: #2D2D2D;
    --contrast-lemon: #F4FF5C;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --shadow: rgba(0, 31, 84, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-anthracite);
    background-color: var(--white);
}

/* ========================================
   TIPOGRAFÍA Y ELEMENTOS BASE
======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--deep-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-anthracite);
}

a {
    color: var(--turquoise);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--deep-blue);
    text-decoration: underline;
}

/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ========================================
   HEADER Y NAVEGACIÓN
======================================== */

header {
    background: linear-gradient(135deg, var(--deep-blue), var(--turquoise));
    color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--white);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--turquoise) 100%);
    color: var(--white);
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/BWpx1R.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white) !important;
}

.cta-button {
    display: inline-block;
    background: var(--contrast-lemon);
    color: var(--deep-blue);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(244, 255, 92, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 255, 92, 0.5);
    text-decoration: none;
    color: var(--deep-blue);
}

/* ========================================
   SECCIONES PRINCIPALES
======================================== */

.section-alt {
    background-color: var(--light-almond);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CARDS Y GRID
======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 31, 84, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 84, 0.2);
    border-color: var(--turquoise);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--turquoise), var(--deep-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--white);
}

.card h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

/* ========================================
   VENTAJAS Y BENEFICIOS
======================================== */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--turquoise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: var(--white);
}

/* ========================================
   FORMULARIO
======================================== */

.form-section {
    background: linear-gradient(135deg, var(--light-almond), var(--white));
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 31, 84, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--turquoise);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--turquoise), var(--deep-blue));
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 194, 168, 0.3);
}

/* ========================================
   FAQ SECTION
======================================== */

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 31, 84, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--light-gray);
    font-weight: 600;
    color: var(--deep-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-almond);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--dark-anthracite);
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--dark-anthracite);
    color: var(--white);
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--turquoise);
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--turquoise);
    text-decoration: none;
}

.footer-section p {
    color: var(--white) !important;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* ========================================
   COOKIE POPUP
======================================== */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-anthracite);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--turquoise);
    color: var(--white);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid #666;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

/* ========================================
   UTILIDADES
======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--turquoise); }
.bg-primary { background-color: var(--turquoise); }
.bg-light { background-color: var(--light-almond); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* ========================================
   RESPONSIVO
======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 200px 0 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 180px 0 50px 0;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.3rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .contact-info {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 170px 0 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: 190px 0 40px 0;
    }
}