/* Variables y Reset */
:root {
    --green-500: #10b981;
    --green-600: #059669;
    --green-50: #f0fdf4;
    --green-100: #d1fae5;
    --amber-500: #f59e0b;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --gray-50: #f9fafb;
    --gray-600: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--amber-50), var(--white), var(--green-50));
    min-height: 100vh;
}

.index-link {
    text-decoration: none;
    color: none;
}

/* Layout */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--green-500);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* Hero */
.hero {
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--green-500), var(--amber-500));
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.25rem);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: var(--green-500);
    color: var(--green-500);
}

.hero-image-container {
    position: relative;
}

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

.stats-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green-500);
}

.stats-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* About */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-green {
    background: linear-gradient(180deg, var(--green-50), var(--white));
}

.card-amber {
    background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.card-emerald {
    background: linear-gradient(180deg, var(--green-50), var(--white));
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.icon-green {
    background: var(--green-100);
}

.icon-amber {
    background: var(--amber-100);
}

.icon-emerald {
    background: var(--green-100);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
}

/* Services */
.services {
    background: linear-gradient(135deg, var(--green-50), var(--amber-50));
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Methodology */
.methodology-timeline {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
}

@media (max-width: 768px) {
    .methodology-timeline::before {
        display: none;
    }
}

.methodology-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .methodology-item {
        flex-direction: column;
    }
}

.methodology-reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .methodology-reverse {
        flex-direction: column;
    }
}

.methodology-card {
    width: 100%;
    background: linear-gradient(90deg, var(--green-500), var(--amber-500));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .methodology-card {
        width: 41.666667%;
    }
}

.methodology-phase {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.methodology-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.methodology-content {
    width: 100%;
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .methodology-content {
        width: 58.333333%;
        margin-top: 0;
        margin-left: 4rem;
    }
    
    .methodology-reverse .methodology-content {
        margin-left: 0;
        margin-right: 4rem;
    }
}

.methodology-tools-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: var(--white);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Success Stories */
.success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.success-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.success-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.success-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.success-content {
    padding: 2rem;
}

.success-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-tag {
    background: var(--green-100);
    color: var(--green-600);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.client-type {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.success-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.success-subtitle {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.success-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.detail-text {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.results-content {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--green-50);
    border-radius: 1rem;
    animation: fadeIn 0.3s ease-in;
}

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

.results-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.results-list {
    list-style: none;
}

.result-item {
    display: flex;
    align-items: center;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.result-item::before {
    content: '✓';
    color: var(--green-500);
    margin-right: 0.5rem;
}

.success-quote {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--gray-600);
    border-left: 4px solid var(--green-200);
    padding-left: 1rem;
}

.quote-footer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info .section-subtitle {
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-green {
    background: var(--green-100);
}

.icon-amber {
    background: var(--amber-100);
}

.icon-emerald {
    background: var(--green-100);
}

.contact-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-text {
    color: var(--gray-600);
}

.contact-form-container {
    background: linear-gradient(135deg, var(--green-500), var(--amber-500));
    padding: 2rem;
    border-radius: 1rem;
    color: var(--white);
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-family: inherit;
    backdrop-filter: blur(4px);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--white);
    color: var(--green-500);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #f3f4f6;
    transform: translateY(-0.25rem);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-main {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-main {
        grid-column: span 2;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(90deg, var(--green-500), var(--amber-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.footer-logo-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-logo-subtitle {
    color: var(--gray-400);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-column-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}