/* Reset y Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Utilidades */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section__subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .section__title {
        font-size: 2rem;
    }
    .section__subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
}

/* Header y Navegación */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><path d="M0,20 C150,100 350,0 500,50 C650,100 850,0 1000,20 L1000,100 L0,100 Z"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__title .highlight {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__features {
    display: flex;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature__icon {
    background-color: var(--accent-color);
    color: var(--text-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__features {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Servicios */
.services {
    padding: 6rem 0;
    background-color: var(--bg-gray);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service__card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service__card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service__features {
    list-style: none;
    text-align: left;
}

.service__features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Proceso */
.process {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.process__timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.process__step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step__number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.step__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step__content p {
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .process__step {
        gap: 1rem;
    }
    
    .step__number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Formulario de Presupuesto */
.quote {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-white) 100%);
}

.quote__content {
    max-width: 800px;
    margin: 0 auto;
}

.quote__form {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__group--checkbox {
    margin-bottom: 2rem;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quote__form {
        padding: 2rem;
    }
    
    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Alertas */
.alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.alert--success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert--error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Contacto */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.contact__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact__info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact__info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact__methods {
    display: grid;
    gap: 1.5rem;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-gray);
    border-radius: var(--border-radius);
}

.contact__icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__method strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact__method p {
    margin: 0;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer__brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer__column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: 0.5rem;
}

.footer__column a {
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer__column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Animaciones y efectos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__cta {
        width: 100%;
    }
    
    .hero__cta .btn {
        flex: 1;
    }
}

/* Optimizaciones de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejoras de contraste */
@media (prefers-contrast: high) {
    :root {
        --text-light: #4b5563;
        --border-color: #9ca3af;
    }
}
