/* Estilos principales para domain - Auditoría Financiera */

/* Variables CSS */
:root {
    /* Colores principales */
    --color-bg: #2F2F33;
    --color-accent: #9EFF00;
    --color-secondary: #4FFFB0;
    --color-text: #FFFFFF;
    --color-text-dark: #121212;
    --color-grey: #888888;
    --color-grey-light: #AAAAAA;
    --color-grey-dark: #444444;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Bordes y sombras */
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --neon-shadow: 0 0 15px rgba(158, 255, 0, 0.5);
    --neon-shadow-hover: 0 0 25px rgba(158, 255, 0, 0.8);
}

/* Estilos base y reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

main {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    overflow-x: hidden;
}

section {
    padding: var(--spacing-lg) 0;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    margin-bottom: var(--spacing-md);
    text-align: center !important;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    height: 4px;
    width: 60px;
    background: var(--color-accent);
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Botones */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: var(--color-text-dark);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    box-shadow: var(--neon-shadow);
}

.elem {
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow-hover);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(158, 255, 0, 0.1);
    transform: translateY(-2px);
}

/* Header y navegación */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(47, 47, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(158, 255, 0, 0.1);
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    gap: var(--spacing-md);
}

.menu a {
    font-weight: 500;
    position: relative;
}

.menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.menu a:not(.btn-primary):hover::after,
.menu a:not(.btn-primary):focus::after {
    width: 100%;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-toggle .bar {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

/* Estilos para menú abierto usando PHP */
body.menu-open .menu {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-menu-toggle .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Secciones principales */
/* Hero Section */
.hero {
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    background: radial-gradient(circle at 70% 30%, rgba(79, 255, 176, 0.15), transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(158, 255, 0, 0.05);
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.hero-text h1 span {
    color: var(--color-accent);
    position: relative;
}

.hero-img {
    position: relative;
}

.hero-img img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.hero-img::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    z-index: 0;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Sección Nosotros */
.about {
    background-color: rgba(79, 255, 176, 0.05);
    padding: var(--spacing-xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.about-text h2 {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.about-img {
    position: relative;
    text-align: right;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Sección de beneficios */
.benefits {
    padding: var(--spacing-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(158, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
    border-color: var(--color-accent);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    text-align: center;
    width: 100%;
}

.benefit-card h3 {
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* Sección de servicios */
.services {
    background-color: rgba(79, 255, 176, 0.05);
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    color: var(--color-accent);
    text-align: center;
}

/* Sección de proceso */
.process {
    padding: var(--spacing-xl) 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: var(--spacing-lg);
    left: 0;
}

.timeline-item:nth-child(even) {
    padding-left: var(--spacing-lg);
    left: 50%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content h3 {
    text-align: center;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border-top: 1px solid rgba(158, 255, 0, 0.3);
    border-right: 1px solid rgba(158, 255, 0, 0.3);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(158, 255, 0, 0.3);
    border-left: 1px solid rgba(158, 255, 0, 0.3);
    transform: rotate(45deg);
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: var(--neon-shadow);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-number {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 0.8rem;
}

.timeline-item:nth-child(odd) .timeline-number {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -10px;
}

/* Sección de contacto */
.contact {
    background-color: rgba(79, 255, 176, 0.05);
    padding: var(--spacing-xl) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(158, 255, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(158, 255, 0, 0.2);
    color: var(--color-text);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--neon-shadow);
}

select.form-control option {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.checkbox-group input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.9rem;
}

.checkbox-group a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Testimonios */
.testimonials {
    padding: var(--spacing-xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(158, 255, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    text-align: left;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--color-grey-light);
    margin: 0;
}

.testimonial-content {
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    font-family: serif;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -25px;
    left: -10px;
}

/* Footer */
.site-footer {
    background: rgba(36, 36, 40, 0.95);
    border-top: 1px solid rgba(158, 255, 0, 0.1);
    padding: var(--spacing-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
}

.footer-logo p {
    margin-top: var(--spacing-sm);
    color: var(--color-grey);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-legal a {
    color: var(--color-grey);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-contact address {
    font-style: normal;
    color: var(--color-grey);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-accent);
}

.copyright {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    color: var(--color-grey);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(36, 36, 40, 0.95);
    border-top: 1px solid rgba(158, 255, 0, 0.1);
    padding: var(--spacing-md);
    z-index: 1000;
    transition: bottom 0.5s ease;
    backdrop-filter: blur(10px);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-md);
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Estilos para páginas de políticas */
.policy-page {
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(158, 255, 0, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

.policy-container h1 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.policy-container h2 {
    font-size: 1.8rem;
    margin-top: var(--spacing-md);
    text-align: center !important;
}

.policy-container h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: var(--spacing-md);
    text-align: center;
}

.policy-container p,
.policy-container ul,
.policy-container ol {
    margin-bottom: var(--spacing-sm);
}

.policy-container ul,
.policy-container ol {
    padding-left: var(--spacing-md);
}

.policy-container ul li,
.policy-container ol li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.policy-container ol li {
    list-style-type: decimal;
}

/* Media queries para responsividad */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-img {
        order: -1;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg) var(--spacing-md);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 10px;
    }
    
    .timeline-number,
    .timeline-item:nth-child(even) .timeline-number,
    .timeline-item:nth-child(odd) .timeline-number {
        left: 10px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        top: 20px;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid rgba(158, 255, 0, 0.3);
        border-left: 1px solid rgba(158, 255, 0, 0.3);
    }
    
    .hero-img::after {
        right: 0;
        top: 10px;
        width: 95%;
        height: 95%;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 60px;
        right: 0;
        background: rgba(36, 36, 40, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 60px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .menu li a {
        font-size: 1.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-text h1, .about-text h2 {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Mejorar adaptación de timeline en móvil */
    .timeline-content {
        padding: var(--spacing-sm);
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
    
    /* Arreglar desbordamiento en elementos flotantes */
    .hero-img::after {
        display: none;
    }
    
    /* Ajustar servicio-card para evitar desbordamiento */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustar tamaño de botones en móvil */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .benefit-card {
        margin: 0 var(--spacing-xs);
    }
    
    /* Ajustar el grid de testimoniales */
    .testimonial-card {
        margin: 0 var(--spacing-xs);
    }
    
    /* Asegurar que todos los contenedores tengan padding apropiado */
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Clase para centrar texto */
.text-center {
    text-align: center !important;
}

/* Animaciones CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(158, 255, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(158, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(158, 255, 0, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}
