/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --primary-blue: #0d47a1;
    --primary-red: #d32f2f;
    --text-dark: #333333;
    --white: #ffffff;
    --whatsapp-green: #25D366;
    --bg-orange: #f15846;
}

/* =========================================
   ESTILOS DE LA SECCIÓN (FONDO NUEVO)
   ========================================= */
section.servicio {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    /* Degradado naranja solicitado */
    background: radial-gradient(circle at center, #f15846 10%, #8b1c10 100%);
}

/* Línea decorativa central */
section.servicio::before {
    content: '';
    position: absolute;
    top: 5%; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 90%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 1;
}

.contenido-servicio {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* =========================================
   TARJETAS (ESTRUCTURA)
   ========================================= */
.izq-servicio, .der-servicio {
    background: var(--white);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 6px solid transparent;
    min-height: 500px;
}

/* Hover Efecto Tarjetas */
.izq-servicio:hover, .der-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* =========================================
   CONTENIDO INTERNO TARJETAS
   ========================================= */
.contenido-servicio h1 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
}

.naranja {
    color: #ff5722;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.chcio {
    background-color: #e3f2fd;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.hashtag {
    display: block;
    font-size: 0.9rem;
    font-style: italic;
    color: #78909c;
    margin-bottom: 15px;
}

.contenido-servicio h2 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 20px 0;
}

/* IMÁGENES PRINCIPALES (SVG) */
.img-main {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.img-main img {
    max-width: 80%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.izq-servicio:hover .img-main img,
.der-servicio:hover .img-main img {
    transform: scale(1.05);
}

/* ESPECÍFICOS: IZQUIERDA (AZUL) */
.izq-servicio { border-top-color: var(--primary-blue); }
.izq-servicio h1 { color: var(--primary-blue); }
.izq-servicio h2 { border-left: 4px solid var(--primary-blue); padding-left: 15px; }

/* ESPECÍFICOS: DERECHA (ROJO) */
.der-servicio { border-top-color: var(--primary-red); }
.der-servicio h1 { color: var(--primary-red); text-align: right; }
.der-servicio .info-top, 
.der-servicio .text-content { text-align: right; }
.der-servicio .chcio { background-color: #ffebee; color: var(--primary-red); }
.der-servicio h2 { border-right: 4px solid var(--primary-red); padding-right: 15px; display: inline-block; }

/* =========================================
   BOTÓN WHATSAPP (ESTÁNDAR)
   ========================================= */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 10;
}

.btn-whatsapp img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    margin: 0;
    display: block;
    transition: transform 0.3s ease;
}

.der-servicio .btn-whatsapp { align-self: flex-end; }

/* =========================================
   NUEVO BLOQUE: #TEAMSTRATFORD
   ========================================= */
.team-stratford-cta {
    max-width: 800px;
    margin: 60px auto 0 auto; /* Separación superior */
    background: rgba(255, 255, 255, 0.95); /* Blanco casi sólido */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 5;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

.team-content h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.hashtag-team {
    color: var(--primary-red); /* Rojo Stratford */
    font-style: italic;
    font-weight: 900;
}

.team-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

/* Botón Team Stratford (Más grande y centrado) */
.btn-whatsapp-team {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 15px 40px; /* Más grande */
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp-team img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Hover específico para el botón del Team */
.btn-whatsapp-team:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    animation: pulse-green 1.5s infinite;
}

/* =========================================
   ANIMACIONES GENERALES
   ========================================= */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes shake-icon {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Aplicar shake al hover de ambos tipos de botón */
.btn-whatsapp:hover img,
.btn-whatsapp-team:hover img {
    animation: shake-icon 0.5s ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    animation: pulse-green 1.5s infinite;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    section.servicio::before { display: none; }
    .contenido-servicio { grid-template-columns: 1fr; }
    
    .izq-servicio, .der-servicio { text-align: center; align-items: center; }
    .der-servicio h1, .der-servicio .info-top, .der-servicio .text-content { text-align: center; }

    .izq-servicio h2 { border: none; border-bottom: 3px solid var(--primary-blue); padding: 0 0 5px; }
    .der-servicio h2 { border: none; border-bottom: 3px solid var(--primary-red); padding: 0 0 5px; }

    .der-servicio .btn-whatsapp { align-self: center; }
    .btn-whatsapp { width: 100%; justify-content: center; }

    /* Ajustes para el nuevo bloque en móvil */
    .team-stratford-cta {
        margin-top: 40px;
        padding: 20px;
        width: 100%;
    }
    .team-content h3 { font-size: 1.4rem; }
    .btn-whatsapp-team { width: 100%; justify-content: center; }
}