/** CTA HOME **/

/* Contenedor principal de la sección */
.custom-areas-section {
    padding: 7rem 0;
    background-color: var(--bg-color, #fcf9f8);
    position: relative;
    overflow: hidden;
}

.custom-areas-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.custom-areas-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
}

.custom-areas-tag {
    color: #061b0e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
}

.custom-areas-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    color: #111827;
}

.custom-areas-divider {
    width: 4rem;
    height: 0.25rem;
    background-color: rgba(6, 27, 14, 0.4);
    margin-top: 1.5rem;
    border-radius: 9999px;
}

/* Cuadrícula de tarjetas */
.custom-areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

/* Tarjeta individual (Optimizado: solo se anima transform y box-shadow de forma eficiente) */
.custom-service-card {
    position: relative;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* CORREGIDO: Evitar 'transition: all' */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(6, 27, 14, 0.3);
}

/* Detalle superior estético */
.custom-card-accent {
    position: absolute;
    top: 0;
    left: 2.5rem;
    width: 3rem;
    height: 0.25rem;
    background-color: rgba(6, 27, 14, 0.2);
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    /* CORREGIDO: Transición específica para width y background */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.custom-service-card:hover .custom-card-accent {
    width: 5rem;
    background-color: #061b0e;
}

.custom-card-title-wrap {
    min-height: 60px;
    margin-bottom: 1rem;
}

.custom-card-title {
    font-weight: 700;
    color: #111827;
    transition: color 0.2s ease;
    max-width: 70%;
    min-height: 115px;
}

.custom-service-card:hover .custom-card-title {
    color: #061b0e;
}

.custom-card-text-wrap {
    min-height: 110px;
}

.custom-card-text {
    color: rgba(75, 85, 99, 0.8);
    line-height: 1.6;
    font-weight: 300;
}

/* Pie de tarjeta */
.custom-card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #061b0e;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.custom-service-card:hover .custom-card-footer {
    opacity: 1;
}

.custom-card-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.custom-service-card:hover .custom-card-arrow {
    transform: translateX(4px);
}


/** CTA1 SECCION **/

.custom-cta-section {
    position: relative;
    padding: 7rem 0;
    background-color: #0f172a;
    color: #ffffff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .custom-cta-section {
        background-color: #09090b;
    }
}

.cta-ambient-light {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}
.cta-ambient-light-left {
    top: -10rem;
    left: -10rem;
    background-color: rgba(6, 27, 14, 0.25);
}
.cta-ambient-light-right {
    bottom: -10rem;
    right: -10rem;
    background-color: rgba(37, 99, 235, 0.15);
}

.custom-cta-svg-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 33.333%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}
.custom-cta-svg {
    width: 100%;
    height: 100%;
    color: rgba(6, 27, 14, 0.4);
}

.custom-cta-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

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

@media (min-width: 1024px) {
    .custom-cta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
    }
}

.custom-cta-tag {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    display: inline-block;
}

.custom-cta-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.25;
}

.custom-cta-desc {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.custom-cta-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-cta-stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.custom-cta-stat-num {
    display: block;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.custom-cta-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Botón optimizado */
.custom-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #061b0e;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* CORREGIDO: Transiciones específicas */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-cta-button:hover {
    background-color: rgba(6, 27, 14, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.3);
}

.custom-cta-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.custom-cta-button:hover .custom-cta-arrow {
    transform: translateX(4px);
}

.custom-cta-image-container {
    position: relative;
}

.custom-cta-image-glow {
    position: absolute;
    inset: -0.75rem;
    background: linear-gradient(to top right, rgba(6, 27, 14, 0.4), transparent);
    border-radius: 1rem;
    filter: blur(4px);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.custom-cta-image-container:hover .custom-cta-image-glow {
    opacity: 1;
}

.custom-cta-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #1e293b;
}

.custom-cta-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

@media (min-width: 1024px) {
    .custom-cta-img {
        height: 500px;
    }
}

.custom-cta-image-container:hover .custom-cta-img {
    transform: scale(1.05);
}

.custom-cta-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.6), transparent, transparent);
    pointer-events: none;
}


/** CTA2 SECCION **/

.custom-cta2-section {
    padding: 8rem 0;
    background-color: var(--bg-light, #fcf9f8);
    color: #1c1b1b;
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-section {
        background-color: var(--bg-dark, #09090b);
        color: #ffffff;
    }
}

.custom-cta2-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.custom-cta2-icon-wrap {
    display: inline-block;
    padding: 1rem;
    border-radius: 9999px;
    background-color: rgba(6, 27, 14, 0.1);
    margin-bottom: 2rem;
}

.custom-cta2-svg {
    color: #061b0e;
    width: 2rem;
    height: 2rem;
    display: block;
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-svg {
        color: #ffffff;
    }
}

.custom-cta2-title {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.custom-cta2-text {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-text {
        color: rgba(255, 255, 255, 0.6);
    }
}

.custom-cta2-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .custom-cta2-buttons {
        flex-direction: row;
    }
}

.custom-cta2-btn {
    padding: 1.25rem 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 1.125rem;
    text-decoration: none;
    /* CORREGIDO: Transiciones específicas */
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    text-align: center;
    display: inline-block;
}

.custom-cta2-btn-primary {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2);
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-btn-primary {
        background-color: #061b0e;
        color: #0f172a;
    }
}

.custom-cta2-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.custom-cta2-btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: inherit;
    background-color: transparent;
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-btn-outline {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.custom-cta2-btn-outline:hover {
    background-color: rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark) {
    .custom-cta2-btn-outline:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}
