
/* --- SERVICE SUBPAGES SHARED STYLES --- */

/* 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;
}

main section.servicio-extra-text {
    background: #111 !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: #111;
    background-size: cover;
    background-position: center;
    padding: 50px 20px 40px;
}

.servicio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

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

.servicio-breadcrumb {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.75em;
    color: #aaa;
    z-index: 1;
}

.servicio-breadcrumb a {
    color: #aaa;
    text-decoration: none;
}

.servicio-breadcrumb a:hover {
    color: rgb(232, 223, 56);
}

.servicio-hero-logo {
    margin-bottom: 15px;
}

.servicio-hero-logo img {
    height: 100px;
}

.servicio-hero h2 {
    font-size: 1.6em;
    font-weight: normal;
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.servicio-hero p {
    font-size: 1em;
    font-weight: 300;
    font-style: italic;
    margin: 0;
    color: #ddd;
}

/* Hero with Video Background */
.servicio-hero-video {
    padding: 0;
    min-height: 50vh;
}

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

.servicio-hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.servicio-hero-video::before {
    display: none; /* Disable the default overlay */
}

.servicio-hero-video .servicio-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

/* Content Section */
.servicio-content {
    background-color: #111;
    color: #ccc;
    padding: 50px 8% !important;
    border-top: 4px solid rgb(232, 223, 56);
}

/* Content Section with Background Image */
.servicio-content-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.servicio-content-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.servicio-content-bg > * {
    position: relative;
    z-index: 1;
}

.servicio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Content Block */
.servicio-block {
    display: flex;
    flex-direction: column;
}

.servicio-block .icono {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1); /* Convert black icons to white */
}

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

.servicio-block h3 {
    color: rgb(232, 223, 56);
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.servicio-block p {
    font-size: 0.85em;
    line-height: 1.7;
    color: #ccc;
    margin: 0;
}

/* Full-width block spanning both columns */
.servicio-block.full {
    grid-column: 1 / -1;
}

/* Photo block */
.servicio-photo {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

/* Photo item in grid */
.servicio-photo-item {
    overflow: hidden;
}

/* CTA Button */
.servicio-cta {
    text-align: center;
    padding: 40px 20px !important;
    background-color: #111;
}

.servicio-cta a {
    display: inline-block;
    padding: 14px 40px;
    background-color: rgb(232, 223, 56);
    border: none;
    border-radius: 5px;
    color: #111;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    font-family: 'CenturyGothic', Arial, sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* CTA Inside Content (shares background) */
.servicio-cta-inner {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.servicio-cta-inner a {
    display: inline-block;
    padding: 14px 40px;
    background-color: rgb(232, 223, 56);
    border: none;
    border-radius: 5px;
    color: #111;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    font-family: 'CenturyGothic', Arial, sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Contact Section (QR variant) */
.servicio-contacto {
    position: relative;
    padding: 60px 20px !important;
    text-align: center;
    color: #fff;
    background-color: #1a1a1a;
    background-image: url('../imagenes/Servicios/7dec50_43e2d5ef5d2847c5a2bfc050287a87dc~mv2_d_1920_1280_s_2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.servicio-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

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

.servicio-contacto h2 {
    font-size: 2em;
    font-weight: normal;
    color: rgb(232, 223, 56);
    margin-bottom: 30px;
}

.servicio-contacto .qr-contacto {
    display: inline-block;
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.servicio-contacto .qr-contacto img {
    width: 180px;
    height: auto;
    display: block;
}

/* Contact Section (Form variant) */
.servicio-contacto-form {
    position: relative;
    padding: 60px 5% !important;
    text-align: center;
    color: #fff;
    background-color: #1a1a1a;
    background-image: url('../imagenes/Servicios/7dec50_43e2d5ef5d2847c5a2bfc050287a87dc~mv2_d_1920_1280_s_2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.servicio-contacto-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

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

.servicio-contacto-form h2 {
    font-size: 2em;
    font-weight: normal;
    color: rgb(232, 223, 56);
    margin-bottom: 30px;
}

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

.servicio-contacto-form .qr-contacto {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.servicio-contacto-form .qr-contacto img {
    width: 180px;
    height: auto;
    display: block;
}

.servicio-contacto-form form {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    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: 12px;
    border: none;
    border-radius: 2px;
    background-color: rgb(232, 223, 56);
    color: #333;
    font-family: 'CenturyGothic', Arial, sans-serif;
    font-size: 0.9em;
}

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

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

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

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

.servicio-contacto-form button[type="submit"] {
    background-color: rgb(232, 223, 56);
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    font-family: 'CenturyGothic', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

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

/* Extra text (e.g. "Servicio para particulares y empresas") */
.servicio-extra-text,
.servicio-extra-text-inner {
    text-align: center;
    padding: 40px 20px !important;
    color: #ccc;
    box-shadow: none !important;
    border: none !important;
}
.servicio-extra-text {
    background: #111 !important;
    background-color: #111 !important;
}

.servicio-extra-text p,
.servicio-extra-text-inner p {
    font-size: 1.4em;
    margin: 0;
    display: inline-block;
}

/* Fade-in animation for extra text */
.servicio-extra-text.fade-in p,
.servicio-extra-text-inner.fade-in p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicio-extra-text.fade-in.visible p,
.servicio-extra-text-inner.fade-in.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* Servicios Nav — botones de navegación entre servicios */
.servicios-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 45px 20px 10px;
}
.snav-btn {
    background: transparent;
    color: #999;
    border: 2px solid #333;
    padding: 8px 18px;
    font-size: 0.85em;
    font-family: 'CenturyGothic', Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.25s;
    cursor: pointer;
}
.snav-btn:hover {
    border-color: rgb(232, 223, 56);
    color: #fff;
}
.snav-btn.active {
    background: rgb(232, 223, 56);
    color: #111;
    border-color: rgb(232, 223, 56);
    pointer-events: none;
}

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

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

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

    .servicio-grid > *:nth-child(even) {
        margin-top: 0; /* Remove stagger on single column */
    }

    .servicio-block.full {
        grid-column: 1;
    }

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

    .servicio-hero-logo img {
        height: 70px;
    }

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

    .servicios-nav {
        gap: 5px;
        padding: 30px 15px 10px;
    }
    .snav-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    .servicio-content-bg,
    .servicio-contacto,
    .servicio-contacto-form {
        background-attachment: scroll; /* Disable parallax on mobile */
    }

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

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