/* ============================================================
   DOMAIN - AUDITORÍA FINANCIERA ESPAÑA
   Bright & Modern CSS with Animations
   ============================================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1A1A3F;
    background: linear-gradient(135deg, #3F00FF 0%, #FF6B6B 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1A1A3F;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(63, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3F00FF, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1A1A3F;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3F00FF;
    transform: translateY(-2px);
}

.nav-link.btn-cta {
    background: linear-gradient(135deg, #C4F000, #FFDC00);
    color: #1A1A3F;
    padding: 0.8rem 2rem;
    font-weight: 700;
}

.nav-link.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 240, 0, 0.4);
}

/* Mobile Menu */
.menu-toggle-checkbox {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #1A1A3F;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle-checkbox:checked ~ .hamburger .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-checkbox:checked ~ .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-checkbox:checked ~ .hamburger .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-overlay {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #C4F000, #FFDC00);
    color: #1A1A3F;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 240, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3F00FF, #FF6B6B);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(63, 0, 255, 0.4);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section:nth-child(odd) {
    background: rgba(26, 26, 63, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #3F00FF 0%, #FF6B6B 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/shXWEr.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
    gap: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #C4F000, #FFDC00);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(63, 0, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    color: #1A1A3F;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3F00FF, #FF6B6B);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #C4F000, #FFDC00, #3F00FF, #FF6B6B);
    border-radius: 25px;
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1A1A3F;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3F00FF;
    box-shadow: 0 0 10px rgba(63, 0, 255, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #3F00FF, #FF6B6B);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 0, 255, 0.4);
}

/* Footer */
.footer {
    background: #1A1A3F;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #C4F000;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #C4F000;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #C4F000;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
    z-index: 10000;
    transition: opacity 0.3s ease;
    border: 2px solid #C4F000;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-popup h3 {
    margin-bottom: 1rem;
    color: #1A1A3F;
}

.cookie-popup p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-accept {
    background: #C4F000;
    color: #1A1A3F;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: #FFDC00;
    transform: translateY(-2px);
}

.btn-policy {
    background: transparent;
    color: #3F00FF;
    border: 2px solid #3F00FF;
    padding: 0.5rem 1.3rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-policy:hover {
    background: #3F00FF;
    color: white;
}

/* Unified Policy Pages Styles */
.policy-title {
    font-size: 2.5rem;
    color: #1A1A3F;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #3F00FF, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-section-block {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #C4F000;
}

.policy-subsection {
    font-size: 1.3rem;
    color: #3F00FF;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.policy-list {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-list li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.policy-content .contact-info {
    background: rgba(196, 240, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #C4F000;
    margin: 1.5rem 0;
}

.policy-content .contact-info h4 {
    color: #3F00FF;
    margin-bottom: 1rem;
}

.policy-content .contact-info p {
    margin-bottom: 0.5rem;
}

/* Section Text Color Overrides */
/* Заголовки разделов - белый цвет */
.section h2 {
    color: white !important;
}

/* Раздел Sobre Domain - белый текст */
#nosotros h3,
#nosotros p {
    color: white !important;
}

/* Раздел ¿Por Qué Elegir Domain? - белый текст */
#por-que h3,
#por-que p,
#por-que li,
#por-que span {
    color: white !important;
}

/* Раздел Contacto - белый текст */
#contacto h3,
#contacto p,
#contacto .contact-item,
#contacto .contact-item span,
#contacto .contact-item a {
    color: white !important;
}

/* Раздел Solicitar Cotización - определенные тексты белыми */
#cotizacion p {
    color: white !important;
}

#cotizacion .form-checkbox label {
    color: white !important;
}

/* Ссылка política de privacidad в форме - белого цвета */
#cotizacion .form-checkbox label a {
    color: white !important;
}

/* Стили только для страницы gracias.php */
h1.policy-title.gracias-title {
    color: white !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: white !important;
    background-clip: initial !important;
}

/* Заголовок "Su cotización ha sido recibida" черного цвета на странице gracias */
h2.gracias-subtitle {
    color: #1A1A3F !important;
}

/* Заголовки разделов черного цвета только на страницах политик */
.policy-page .policy-subsection {
    color: #1A1A3F !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        gap: 2rem;
    }

    .menu-toggle-checkbox:checked ~ .nav-menu {
        right: 0;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .menu-toggle-checkbox:checked ~ .menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .services-grid,
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .cookie-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .contact-form {
        margin: 2rem auto;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .policy-section-block {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-popup,
    .btn,
    .menu-toggle-checkbox,
    .hamburger {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section {
        background: white !important;
        page-break-inside: avoid;
    }
}
