:root {
    --primary-color: #4361ee;
    --primary-dark: #3651d1;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

/* Header Styles */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.contact-button {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.badge {
    display: inline-block;
    background-color: #f0f3ff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}
.highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.stat-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-height: 400px;
    }
}
    }

    .hero-image {
        order: -1;
        max-height: 400px;
    }
}

/* Page Hero Styles */
.page-hero {
    padding: 2rem 1rem;
    background: var(--color-light);
    width: 100%;
}

.hero-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    white-space: nowrap;
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    white-space: normal;
}


/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, #EEF1FF 0%, #F8F9FF 100%);
    padding: 6rem 0 3rem; /* Reducido el padding inferior */
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Añadido un gap más pequeño */
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem; /* Reducido el margen inferior */
    font-weight: 700;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 5rem 0 3rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.stat-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-label {
    color: var(--text-secondary);
}

/* Services Section */
.services {
    max-width: 1280px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

.services-cta .btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li.tick {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.service-features li.tick::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066ff;
}


@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

.service-icon {
    width: 32px; /* Aumentar el tamaño del icono */
    height: 32px;
    margin-right: 12px; /* Espacio entre el icono y el texto */
    vertical-align: middle; /* Alinear verticalmente con el texto */
    display: inline-block;
}

h2 img.service-icon {
    display: inline-block;
    margin-bottom: 0;
    margin-top: -3px; /* Usando margin-top negativo para subir el icono */
    margin-right: 8px;
    width: 32px;
    height: 32px;
}

/* Process Section */
.process {
    max-width: 1280px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.process-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.process-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 180px; /* Altura reducida */
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    color: #0066ff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.portfolio-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item img {
        height: 160px;
    }
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.portfolio-filters button {
    padding: 0.5rem 1.5rem;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portfolio-filters button:hover {
    background: #f0f0f0;
}

.portfolio-filters button.active {
    background: #0066ff;
    color: #fff;
}


/* Testimonials Section */
.testimonials {
    max-width: 1280px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info {
    flex-grow: 1;
}

.client-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.client-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rating {
    color: #FFB400;
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }

    .rating {
        margin-top: 0.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: var(--white);
    margin: 5vh auto;
    max-width: 1000px;
    width: 90%;
    border-radius: 1rem;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.modal-image {
    position: relative;
    height: 100%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-details {
    display: grid;
    gap: 1.5rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        aspect-ratio: 16/9;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Detailed Services */
.detailed-services {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-info {
    direction: ltr;
}

.service-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: 2rem;
}

.service-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-info ul li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-info ul li:before {
    content: "�";
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* About Content */
.about-content {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.experience-stats {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.experience-stats {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-box {
    flex: 1;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-box i {
    font-size: 2rem;
    color: #0066ff;
}

.stat-content {
    text-align: left;
}

.stat-box h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.stat-box p {
    font-size: 1rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

@media (max-width: 768px) {
    .stat-box {
        width: 100%;
    }
}
    
    .stat-box {
        width: 100%;
    }


.skills-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #333;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #0066ff;
    border-radius: 4px;
    transition: width 0.6s ease;
}

@media (max-width: 768px) {
    .skills-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* FAQ Section */
.faq {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.faq-container {
    margin-top: 3rem;
}

.faq-item {
    background: var(--white);
    border-radius: 0.5rem;
    margin-bottom: 0;         /* Eliminamos el margen inferior */
    padding: 0.25rem;         /* Reducimos el padding al mínimo */
    border-bottom: 1px solid #eee;  /* Separador sutil entre preguntas */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 0.25rem 0;      /* Solo padding vertical mínimo */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    padding-right: 2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0.25rem 0;      /* Solo padding vertical mínimo */
    margin: 0;               /* Eliminamos todos los márgenes */
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 768px) {
    .faq {
        padding: 0 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Extended FAQ Page */
.faq-extended {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-category {
    margin-bottom: 1.5rem;   /* Reducimos el espacio entre categorías */
}

.faq-category h2 {
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-extended .faq-item {
    background: var(--white);
    border-radius: 0.5rem;
    margin-bottom: 0;         /* Eliminamos el margen inferior */
    padding: 0.25rem;         /* Reducimos el padding al mínimo */
    border-bottom: 1px solid #eee;  /* Separador sutil entre preguntas */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-extended .faq-question {
    padding: 0.25rem 0;      /* Solo padding vertical mínimo */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-list {
    gap: 0;                  /* Eliminamos el espacio entre elementos */
}

.faq-contact-message {
    text-align: center;
    margin: 2rem auto;
    color: #666;
    max-width: 600px;
}

.faq-section .question {
    margin-bottom: 0;          /* Eliminamos el margen inferior */
    padding: 0.25rem;          /* Reducimos el padding al mínimo */
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: 1px solid #eee;  /* Añadimos separador sutil */
    transition: all 0.3s ease;
}

.faq-section .question:not(:last-child) {
    margin-bottom: 0;          /* Eliminamos el margen entre preguntas */
}

.faq-section h2 {
    margin-bottom: 40px;
    text-align: center;
}

.faq-section .question-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;        /* Reducimos el padding vertical */
}

/* Contact Section Styles */
.contact-section {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Pre-Footer CTA */
.pre-footer-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    padding: 6rem 2rem;
    text-align: center;
    color: var(--white);
    margin-top: 6rem;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background: #1e293b;
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ffffff;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #10B981;
    color: white;
}

.notification.error {
    background: #EF4444;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-info {
        padding: 1rem 0;
    }

    .experience-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .process-grid,
    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .page-hero {
        padding-top: 6rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}