/* Global Reset & Typography */
:root {
    --primary-color: #1F6DA8;
    /* Default Blue */
    --primary-dark: #164D75;
    --secondary-color: #F8F3EC;
    --secondary-dark: #AE9874;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
}

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

html,
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    width: 100%;
}

a {
    transition: all 0.3s ease-in-out;
}

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

/* Header */
.header {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    backdrop-filter: blur(1px);
    padding: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border: 3px solid var(--secondary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.slogan {
    font-size: 1.6rem;
    padding: 1rem;

    background: linear-gradient(135deg, var(--primary-color) 20%, var(--text-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Logo image inside header */
.logo-img {
    height: 64px;
    width: auto;
    max-width: 100%;
    display: block;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hide full text on very small screens to preserve space */
@media (max-width: 420px) {
    .logo-text {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0 2rem 0;
    background-color: var(--white);
}

.cta-section::after {
    content: '';
    display: block;
    width: 90%;
    max-width: 900px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 3rem auto 0;
    border-radius: 2px;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

/* Material-style container for the CTA image */
.cta-image {
    background: linear-gradient(180deg, var(--white), #AE9874);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.cta-image::before {
    content: '';
    position: absolute;
    inset: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    pointer-events: none;
}

.cta-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 20%, var(--text-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Contact CTA links styled to match the sentence typography and look elegant */
.contact-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--white));
    padding: 1rem 0rem;
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/*

    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary-color);

.contact-ctas:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
*/

/* Elevation effect on hover for contact card */

/* (accent bar and badge were removed per revert) */

/* Reduce vertical space between the 'Contacto' label and first CTA */
.contact-ctas>p:first-child {
    margin: 0 0 0.25rem 0;
}




.contact-cta {
    font-size: 1.125rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.08s ease, background-position 0.3s ease;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
    background: linear-gradient(to right, transparent 0%, rgba(31, 109, 168, 0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 4px;
}


/*




*/

.contact-cta:hover {
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    background-position: 0% 0;
}

.contact-whatsapp {
    color: #0f766e;
    /* subtle WhatsApp green */
}

/* Icon spacing and alignment for contact CTAs */
.contact-cta .fa {
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: 1.15em;
}

.contact-whatsapp .fa {
    color: inherit;
}

.contact-email {
    color: var(--text-light);
    /* subtle WhatsApp green */
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    width: 100%;
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    color: var(--white);
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.4s ease-in-out;
}

.btn-primary:hover {
    background-position: -100% 0;
}

/* Features Section */
.features-section {
    padding: 2rem 0 5rem 0;
    background: var(--white);
}

.features-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--text-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius);
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease, opacity 0.2s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(31, 109, 168, 0.01) 10px,
            rgba(31, 109, 168, 0.01) 20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}


.feature-card:hover {
    border: 2px solid var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(31, 109, 168, 0.1), rgba(31, 109, 168, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-align: center;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .header .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .slogan {
        font-size: 1rem;
        padding: 0.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}