/* 
 * ContaEspaña - Servicios de Contabilidad
 * Estilos principales
 */

/* === Variables === */
:root {
    /* Colores principales */
    --color-bg-dark: #1B1F3B;
    --color-bg-light: #A7226E;
    --color-accent: #2EC4B6;
    --color-accent-light: #CBF3F0;
    --color-text: #F9F9F9;
    --color-text-muted: #D3D3D3;
    
    /* Espaciados */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Fuentes */
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', system-serif;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fondo con imagen */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/ESltJI.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

ul {
    list-style: none;
}

/* === Contenedor === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* === Secciones === */
section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-accent);
}

/* === Header === */
.site-header {
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 31, 59, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.site-logo {
    filter: drop-shadow(0 0 5px var(--color-accent));
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--color-accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === Botones === */
.btn-primary {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent), inset 0 0 10px var(--color-accent);
    transition: all 0.3s ease;
    margin: 0 var(--space-xs);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px var(--color-accent), inset 0 0 15px var(--color-bg-dark);
}

/* === Hero Section === */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(46, 196, 182, 0.1) 0%, rgba(27, 31, 59, 0) 70%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    background: linear-gradient(90deg, var(--color-text) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(46, 196, 182, 0.5));
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 var(--space-sm);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn-primary {
        width: 80%;
        margin: var(--space-xs) 0;
    }
}

/* === About Section === */
.about-section {
    background: rgba(27, 31, 59, 0.6);
    border-radius: 20px;
    margin: var(--space-lg) auto;
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: var(--space-md);
    text-align: left;
}

.about-title {
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.about-text {
    margin-bottom: var(--space-sm);
}

/* === Services Section === */
.services-section {
    background: rgba(167, 34, 110, 0.1);
    padding: var(--space-xl) 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-card {
    background: rgba(27, 31, 59, 0.7);
    border-radius: 15px;
    padding: var(--space-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 196, 182, 0.2);
    box-shadow: 0 0 20px rgba(46, 196, 182, 0.1);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 196, 182, 0.2);
    border: 1px solid rgba(46, 196, 182, 0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    margin-bottom: var(--space-sm);
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent-light);
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

/* === Benefits Section === */
.benefits-section {
    background: rgba(27, 31, 59, 0.8);
    padding: var(--space-xl) 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--space-md);
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 196, 182, 0.05);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-image {
    margin: 0 auto var(--space-sm);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(46, 196, 182, 0.5);
}

.benefit-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
    color: var(--color-accent-light);
}

/* === Trust Section === */
.trust-section {
    background: rgba(167, 34, 110, 0.2);
    padding: var(--space-xl) 0;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.certificates-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.certificate-item {
    background: rgba(27, 31, 59, 0.7);
    padding: var(--space-sm);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 196, 182, 0.2);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 196, 182, 0.2);
    border: 1px solid rgba(46, 196, 182, 0.5);
}

.certificate-image {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-xs);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
}

.certificate-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.testimonial-item {
    background: rgba(27, 31, 59, 0.7);
    padding: var(--space-md);
    border-radius: 10px;
    position: relative;
    border-left: 3px solid var(--color-accent);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-accent-light);
}

/* === Contact Form === */
.contact-section {
    background: rgba(27, 31, 59, 0.8);
    padding: var(--space-xl) 0;
    position: relative;
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(27, 31, 59, 0.9);
    border-radius: 15px;
    padding: var(--space-lg);
    box-shadow: 0 0 30px rgba(46, 196, 182, 0.2), inset 0 0 20px rgba(46, 196, 182, 0.05);
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.form-success {
    background: rgba(46, 196, 182, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: 5px;
    text-align: left;
}

.form-error {
    background: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: 5px;
    text-align: left;
}

.form-group {
    margin-bottom: var(--space-md);
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border-radius: 8px;
    border: 1px solid rgba(46, 196, 182, 0.3);
    background: rgba(27, 31, 59, 0.9);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.5);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EC4B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.form-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(46, 196, 182, 0.5);
    background: rgba(27, 31, 59, 0.9);
    position: relative;
    cursor: pointer;
}

.form-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.checkbox-label a {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent), inset 0 0 10px rgba(46, 196, 182, 0.3);
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px var(--color-accent), inset 0 0 15px rgba(27, 31, 59, 0.5);
}

/* === Footer === */
.site-footer {
    background: rgba(27, 31, 59, 0.95);
    padding: var(--space-lg) 0 var(--space-sm);
    margin-top: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    margin-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-legal h3 {
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.footer-contact ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-contact a {
    color: var(--color-text-muted);
}

.footer-legal a {
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(46, 196, 182, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* === Cookie Banner === */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(27, 31, 59, 0.95);
    border-radius: 10px;
    padding: var(--space-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

#accept-cookies {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-end;
}

#accept-cookies:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(46, 196, 182, 0.3);
}

/* === Legal Pages === */
.legal-section {
    padding: var(--space-xl) 0;
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(27, 31, 59, 0.7);
    padding: var(--space-lg);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(46, 196, 182, 0.1);
    border: 1px solid rgba(46, 196, 182, 0.2);
}

.legal-content h1 {
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.legal-body h2 {
    color: var(--color-accent);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.legal-body ul {
    list-style: disc;
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-body ul li {
    margin-bottom: var(--space-xs);
}

.legal-footer {
    margin-top: var(--space-lg);
    text-align: center;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Media Queries === */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: var(--space-lg);
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 200;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(27, 31, 59, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-lg);
        transition: right 0.3s ease;
        z-index: 150;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    section {
        padding: var(--space-md) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .certificates-list {
        grid-template-columns: 1fr;
    }
} 