/* ============================================
   FORDEMA — Servicios (Formación, Consultoría, Desarrollo)
   Paleta: #3b6fa0 (azul), #ecb94a (naranja),
           #a8c528 (verde), #f8f9fa (claro),
           #333 (texto), #555 (secundario)
   Fuentes: Raleway (titulos), Open Sans (cuerpo)
   ============================================ */

/* Global Reset for service pages */
main {
    padding-bottom: 0;
}
main section {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    padding: 0;
    box-shadow: none !important;
}

/* Hero Section */
.servicio-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #1a2d42;
    background-size: cover;
    background-position: center;
    padding: 50px 20px 40px;
}

.servicio-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.servicio-hero .hero-dark-overlay {
    z-index: 1;
}

.servicio-hero .video-overlay {
    z-index: 1;
}

.servicio-hero .hero-content {
    position: relative;
    z-index: 2;
}

.servicio-hero h2 {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 2.2em;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.servicio-hero p {
    font-size: 1.05em;
    font-weight: 300;
    margin: 0;
    color: #ddd;
    max-width: 600px;
}

/* Breadcrumb */
.servicio-breadcrumb {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.6);
    z-index: 2;
}

.servicio-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.servicio-breadcrumb a:hover {
    color: #fff;
}

/* Content Section — Light theme */
.servicio-content {
    background-color: #f8f9fa;
    color: #555;
    padding: 60px 8% !important;
    border-top: 4px solid #a8c528;
}

/* Grid Layout — 2 columns staggered */
.servicio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Offset right column items (even children) for staggered layout */
.servicio-grid > *:nth-child(even) {
    margin-top: 60px;
}

/* Content Block */
.servicio-block {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(168,197,40,0.12);
}

.servicio-block .icono {
    font-size: 2.2em;
    margin-bottom: 12px;
    line-height: 1;
    color: #a8c528;
}

.servicio-block h3 {
    color: #3b6fa0;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.servicio-block p {
    font-size: 0.9em;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* CTA Inside Content */
.servicio-cta-inner {
    text-align: center;
    padding: 50px 0 10px;
    margin-top: 40px;
}

.servicio-cta-inner a {
    display: inline-block;
    padding: 14px 40px;
    background-color: #ecb94a;
    border: none;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'Raleway', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.servicio-cta-inner a:hover {
    background-color: #d4a53e;
    color: #fff;
    transform: scale(1.02);
}

/* Contact Section (Form variant) — Gradient instead of image */
.servicio-contacto-form {
    position: relative;
    padding: 60px 5% !important;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1a2d42 0%, #152535 50%, #0f1f2e 100%);
}

.servicio-contacto-form > * {
    position: relative;
    z-index: 1;
}

.servicio-contacto-form h2 {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 2em;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.servicio-contacto-form .contacto-form-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.servicio-contacto-form form {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.servicio-contacto-form .form-row {
    display: flex;
    gap: 12px;
}

.servicio-contacto-form .form-row input {
    flex: 1;
}

.servicio-contacto-form input[type="text"],
.servicio-contacto-form input[type="email"],
.servicio-contacto-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.95);
    color: #333;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 0.95em;
}

.servicio-contacto-form input::placeholder,
.servicio-contacto-form textarea::placeholder {
    color: #999;
}

.servicio-contacto-form textarea {
    min-height: 100px;
    resize: vertical;
}

.servicio-contacto-form .form-footer {
    display: flex;
    justify-content: center;
}

.servicio-contacto-form button[type="submit"] {
    background-color: #3b6fa0;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    font-family: 'Raleway', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.servicio-contacto-form button[type="submit"]:hover {
    background-color: #2d5a84;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .servicio-grid {
        gap: 30px;
    }

    .servicio-hero h2 {
        font-size: 1.8em;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .servicio-grid {
        grid-template-columns: 1fr;
    }

    .servicio-grid > *:nth-child(even) {
        margin-top: 0;
    }

    .servicio-hero h2 {
        font-size: 1.4em;
    }

    .servicio-content {
        padding: 30px 5% !important;
    }

    .servicio-contacto-form .form-row {
        flex-direction: column;
    }

    .servicio-contacto-form .contacto-form-content {
        flex-direction: column;
        align-items: center;
    }
}
