/* =============================
   CONTABLE MODERNO - ESTILOS CSS
   ============================= */

/* Variables CSS */
:root {
    --primary-teal: #006D77;
    --accent-orange: #FF9F1C;
    --neutral-sand: #F4EDE4;
    --text-graphite: #2F2F2F;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-graphite);
    background-color: var(--neutral-sand);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Contenedor principal */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    min-height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-teal);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--text-graphite);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--accent-orange);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: currentColor;
}

/* Sección Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #005662 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

/* Secciones generales */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: var(--text-graphite);
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.feature:hover .feature-icon {
    background: var(--primary-teal);
    transform: rotate(360deg);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-teal);
}

.feature p {
    color: var(--text-graphite);
    opacity: 0.8;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 30px;
}

.service-price {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-teal);
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Formulario */
.form-section {
    background: var(--primary-teal);
    color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow);
}

.form-container h2 {
    color: var(--primary-teal);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-graphite);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-orange);
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--text-graphite);
    font-weight: 500;
}

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

.checkbox-group a:hover {
    color: var(--accent-orange);
}

.submit-button {
    width: 100%;
    background: var(--accent-orange);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: var(--text-graphite);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-graphite);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

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

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

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

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.cookie-accept {
    background: var(--accent-orange);
    color: var(--white);
}

.cookie-accept:hover {
    background: #e68a00;
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-decline:hover {
    background: var(--white);
    color: var(--text-graphite);
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .header {
        padding: 12px 0;
        min-height: 90px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero {
        padding: 140px 0 80px;
        overflow-x: hidden;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
        line-height: 1.2;
        margin-bottom: 25px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        word-wrap: break-word;
        line-height: 1.4;
        margin-bottom: 35px;
    }
    
    .section {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }
    
    .form-container {
        margin: 0 15px;
        padding: 30px 20px;
        max-width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    /* Исправление для мобильных */
    .hero-content,
    .section-subtitle,
    .feature,
    .service-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Исправление для таблиц и больших элементов */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Исправление для grid элементов */
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 10px 0;
        min-height: 100px;
    }
    
    .hero {
        padding: 180px 0 90px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 5px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.1;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .feature,
    .service-content {
        padding: 25px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 0 10px;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    .checkbox-group {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Исправление для footer на малых экранах */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: left;
        width: 100%;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Estados de éxito y error */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
} 