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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Utilidades */
.highlight {
    color: #d97706;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #d97706;
    border: 2px solid #d97706;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header {
    margin-bottom: 64px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.navbar {
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
}

.logo-img {
    height: 100px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d97706;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fed7aa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-quote {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.1);
    position: relative;
}

.hero-quote::before {
    content: '"';
    font-size: 3rem;
    color: #d97706;
    font-family: Georgia, serif;
    position: absolute;
    top: -5px;
    left: 10px;
    opacity: 0.3;
}

.hero-quote-text {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.hero-quote-author {
    color: #d97706;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    font-style: normal;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1f2937;
}

.hero-description {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d97706;
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #fffbeb);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(217, 119, 6, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2);
    border-color: rgba(217, 119, 6, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.service-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #374151;
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d97706;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.feature p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 32px;
    background: linear-gradient(145deg, #ffffff, #fffbeb);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.1);
}

.testimonial-card.active {
    display: block;
}

.testimonial-text {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 32px;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-rating i {
    color: #f59e0b;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.3));
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.testimonial-btn:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.contact-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d97706;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.contact-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-container {
    background: linear-gradient(145deg, #ffffff, #fffbeb);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1f2937;
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(217, 119, 6, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    background: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    cursor: pointer;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    color: #d1d5db;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24, #f59e0b, #d97706);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 8px;
}

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

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

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    width: 16px;
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom i {
    color: #ef4444;
    margin: 0 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .hero-quote {
        padding: 16px 20px;
        margin: 12px 0;
    }
    
    .hero-quote-text {
        font-size: 1rem;
    }
    
    .hero-quote-author {
        font-size: 0.85rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 16px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 60px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 24px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-img {
        height: 35px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .contact-form-container {
        padding: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

.service-card,
.testimonial-card,
.contact-form-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de hover mejorados */
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* Mejoras de accesibilidad */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid #d97706;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Estilos para el botón de volver arriba */
.back-to-top-btn:hover {
    background: linear-gradient(135deg, #b45309, #d97706) !important;
    transform: translateY(-2px) !important;
}

/* Estilos para navegación activa */
.nav-link.active {
    color: #d97706;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Mejoras para la carga de imágenes */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img:not([src*="unsplash"]) {
    opacity: 1;
}

/* Animaciones suaves para elementos */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras para el formulario */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.success-message,
.error-message-global {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner para el formulario */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
}

/* Modo oscuro (preparado para futura implementación) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}
