/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }

/* Header */
.header {
    position: fixed;
    top: 0; width: 100%; height: 100px;
    display: flex;
    justify-content: flex-end;
    background: #2B4C9A;
    padding: 0 80px;
    align-items: center;
    z-index: 1000;
}

.menu-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a { color: white; text-decoration: none; font-weight: bold; }

.nav a.active {
    font-weight: bold;
    border-top: 2px solid white;
    padding-top: 5px; /* Adjusts the line distance */
}

/* Hero & Carousel
.hero { position: relative; height: 966px; overflow: hidden; } */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden; /* This prevents the 'scroll-btn' from pushing the height */
    display: flex; /* Helps align internal content without gaps */
    flex-direction: column;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Image will be no wider than its container or its natural width */
    height: 100%; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

.main-logo{
        width: 452px;
    height: 145px;
    margin-top: 300px;
    z-index: 100;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.6));
}

.logo-shadow-overlay {
    margin-top: 300px;
    position: absolute;
    width: 600px; /* Adjust based on logo size */
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 70%);
    z-index: 1; /* Sits behind the logo */
    pointer-events: none;
}

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 100%;
    height: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}



.logo-small{
  padding-top: 8px;
}

/* Central Logo Overlay */
.hero-content {
    position: absolute;
    top: 33%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

/* Animation: Fade-in from bottom */
.fade-in-bottom {
    margin-top: 150px;
    opacity: 0;
    transform: translateY(5px);
    animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Container for alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertical center */
    padding: 80px 20px;
   /* gap: 50px; */
}

/* The Section Container */
.about-section {
    background-color: #ffffff;
    padding: 80px 0; /* Vertical space for the whole section */
    width: 100%;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Back to Flexbox for side-by-side */
    align-items: center; /* Vertically centers the text with the image */
    justify-content: center;
    padding: 0 40px; /* Horizontal padding for the whole block */
    gap: 30px; /* The space BETWEEN the image and the text */
}

/* Image Container */
.about-image {
    flex: 1;
    padding: 20px; /* Internal padding for the image */
}

.about-image img {
    width: 100%;
    max-width: 400px; /* Keeps the photo at a reasonable size */
    height: auto;
    display: block;
    /* Removed: mask-image or background gradients */
    border-radius: 4px; /* Subtle architectural curve */
}

/* Text Container */
.about-content {
    flex: 1;
    padding: 20px; /* Internal padding for the text */
}

/* Ensure no overlap/gradient remains from previous steps */
.about-content, .about-image {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
}/* Title: Roboto Bold, 48px, #2B4C9A */
.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 48px;
    color: #2B4C9A;
    margin-bottom: 25px;
    text-transform: none; /* Keeps it exactly as written */
}

/* Regular text: Roboto Regular, 16px, #464444 */
.about-content p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 16px;
    color: #464444;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Strong text: Roboto Extra Bold, 16px, #3B3939 */
.about-content strong {
    font-family: 'Roboto', sans-serif;
    font-weight: 900; /* Extra Bold */
    font-size: 16px;
    color: #3B3939;
}

/* Link below: Roboto Extra Bold, 17px, #2B4C9A */
.btn-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 900; /* Extra Bold */
    font-size: 17px;
    color: #2B4C9A;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.8; /* Subtle feedback for the user */
}
/* Responsiveness: Stack columns on mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 40px 20px;
    }
}

.services-redesign {
    background-color: #ffffff;
    padding: 100px 20px;
    text-align: center;
}

/* Title Styling */
.services-header {
    margin-bottom: 60px;
}

.title-light {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 38px;
    color: #2B4C9A;
    line-height: 1;
}

.title-bold {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 48px;
    color: #2B4C9A;
    margin-top: 5px;
}

/* Horizontal Grid */
.services-grid {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.service-icon img {
    width: 140px; /* Adjust size based on your SVG files */
    height: auto;
    margin-bottom: 25px;
}

/* Item Typography */
.service-item h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #2B4C9A;
    margin-bottom: 15px;
}

.service-item p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #464444;
    line-height: 1.5;
    max-width: 300px; /* Prevents text from stretching too wide */
}

/* Bottom Button */
.services-footer {
    margin-top: 60px;
}

.btn-primary-blue {
    display: inline-block;
    background-color: #2B4C9A;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 900; /* Extra Bold */
    font-size: 18px;
    transition: background-color 0.3s;
}

.btn-primary-blue:hover {
    background-color: #1a346e;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Gallery Section */
.gallery-section {
    background-color: #D9D9D9; /* Light gray background */
    padding: 60px 20px;
    text-align: center;
}

.gallery-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #464444;
    margin-bottom: 40px;
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow stacking on smaller screens */
}

/* Gallery Cards */
.gallery-card {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Specific backgrounds for each card - REPLACE with your actual image paths */
.card-proyectos {
    background-image: url('rsc/proyectos-cover.png'); 
}
.card-obras {
    background-image: url('rsc/obras-cover.png');
}

/* Dark overlay to make text readable */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: background 0.3s;
}
.gallery-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.6); /* Darken on hover */
}

.ver-mas-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 48px;
    margin-bottom: 20px;
    text-decoration: none;
    cursor: pointer;
}
.ver-mas-link:hover {
    transform: scale(1.1);
    text-decoration: none;
    cursor: pointer;
}

.ver-mas-link {

    transform: scale(1.05);
}


/* Modal Styles (Hidden by default) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Content (The Image) */
.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 30px; right: 50px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    padding: 20px;
    cursor: pointer;
    user-select: none;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }


/* Contact Section */
.contact-section {
    padding: 100px 20px;
    background-color: #fff;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-text h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #2B4C9A;
    max-width: 400px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #EBEBEB;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
}

#submit-btn {
    background-color: #2B4C9A;
    color: white;
    padding: 12px 60px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

#submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer */
.main-footer {
    background-color: #2B4C9A;
    color: white;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img { width: 180px; }
.footer-logo p { font-size: 12px; margin-top: 5px; }

.footer-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

a{
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 16px;
    color: #FFFFFF;

}

.info-item img { width: 28px; height: auto; }

.footer-info .info-item span,
.footer-info .info-item a {
    font-size: 19px;
    line-height: 1.6;
    color: #ffffff;
}

.nosotros-main {
    padding: 150px 0 80px;
    background-color: #fff;
}

.bio-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.bio-entry {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
}

/* Logic to flip the layout for Juan José */
.bio-entry.reverse {
    flex-direction: row-reverse;
}

.bio-text {
    flex: 1;
    font-family: 'Roboto', sans-serif;
}

.bio-text h2 {
    color: #2B4C9A;
    font-size: 47px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}

.bio-location {
    font-size: 21px;
    font-style: italic;
    color: #464444;
    margin-bottom: 24px;
}

.bio-text p {
    font-size: 19px;
    line-height: 1.6;
    color: #464444;
    letter-spacing: -0.57px;
    margin-bottom: 15px;
}

/* --- The Architectural Blueprint Frame --- */
.bio-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* 1. THE MAIN IMAGE CONTAINER */
    
.blueprint-frame {
    position: relative;
    /* 1. REMOVE any 'height' or 'max-height' here */
    height: auto; 
    
    /* 2. Padding gives the 'Safe Area' for your text */
    padding: 40px; 
    background-color: #ffffff;
    
    /* 3. This ensures the container 'wraps' the content tightly */
    display: flex;
    flex-direction: column;
}

.blueprint-frame::after {
    content: '';
    position: absolute;
    /* 4. Using negative values ensures the frame always stays 
          15px outside the parent's actual edges, no matter how tall it gets */
    top: -15px;
    bottom: -15px;
    left: -15px;
    right: -15px;
    
    background-image: url('rsc/Frame.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}
.blueprint-frame img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
}
/* Page Title */
.page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #2B4C9A;
    text-align: center;
    margin: 140px 0 60px;
}
/* 2. Grid Setup */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 40px;
    max-width: 1200px;
    margin: 0 auto 100px;
    margin-top: 100px;
    padding: 0 20px;
    /* Align items to top to allow staggering */
    align-items: start; 
}

/* 3. Staggered Alignment: Middle Column higher */
/* Targets the 2nd, 5th, 8th... items */
.service-card:nth-child(3n+2) {
    transform: translateY(-50px);
}
/* Ensure content stays below the lines but above the white background */
.card-content {
    position: relative;
    z-index: 1;
    /* 5. Ensure the content itself doesn't have a fixed height */
    height: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content p {
    /* 6. This is the 'Dynamic Mesh'. 
          It will now push the bottom of the box down as it grows */
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 12px;
}}

.card-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    /* You can add a subtle border here if you want 
       the image to have its own 'box' inside the frame */
}
.card-content h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2B4C9A;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cta-nosotros {
    background-color: #ffffff;
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: center;
}

.cta-container h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #2B4C9A;
    margin-bottom: 40px;
}

/* Reusing the primary blue button style */
.btn-contact-cta {
    display: inline-block;
    background-color: #2B4C9A;
    color: #ffffff;
    padding: 18px 60px; /* Wide button as seen in the image */
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact-cta:hover {
    background-color: #1a346e;
    transform: translateY(-2px); /* Subtle lift on hover */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-page-wrapper {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 130px 20px 80px;
    min-height: 80vh;
}

.google-form-container {
    width: 100%;
    max-width: 800px; /* Standard professional width for forms */
    background: #ffffff;
    /* Optional: Add a very subtle shadow to define the form area */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.google-form-container iframe {
    width: 100%;
    /* Note: If your form is very long, you may need to increase this height 
       or use 'height: 100vh' for a full-page feel */
    min-height: 1200px; 
    border: none;
}


.bio-blueprint-frame {
    position: relative;
    /* 1. REMOVE any 'height' or 'max-height' here */
    height: auto; 
    
    /* 2. Padding gives the 'Safe Area' for your text */
    padding: 15px;
    padding-top: 30px;
    background-color: #ffffff;
    
    /* 3. This ensures the container 'wraps' the content tightly */
    display: flex;
    flex-direction: column;
}

.bio-blueprint-frame::after {
    content: '';
    position: absolute;
    /* 4. Using negative values ensures the frame always stays 
          15px outside the parent's actual edges, no matter how tall it gets */
    top: -15px;
    bottom: -15px;
    left: -15px;
    right: -15px;
    
    background-image: url('rsc/Frame.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}
.bio-blueprint-frame img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
}



/* ===================================================
   SERVICES PAGE — Rediseño Figma (node 296-2)
   =================================================== */

/* Contenedor principal — despeja el header fijo */
.svc-main {
    padding-top: 100px;
    background-color: #ffffff;
}

/* Título de página */
.svc-page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #2B4C9A;
    text-align: center;
    padding: 60px 20px 50px;
    margin: 0;
}

/* Grilla de 2 columnas */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 30px;
}

/* ---- Tarjeta base ---- */
.svc-card {
    border-radius: 25px;
    padding: 52px 56px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Variante oscura (#2b4c9a) */
.svc-card.dark {
    background-color: #2B4C9A;
}
.svc-card.dark h2    { color: #ffffff; }
.svc-card.dark p     { color: #e4e3e3; }
.svc-card.dark strong { color: #ffffff; font-weight: 600; }

/* Variante clara (#bdc7de) */
.svc-card.light {
    background-color: #BDC7DE;
}
.svc-card.light h2    { color: #2B4C9A; }
.svc-card.light p     { color: #464444; }
.svc-card.light strong { color: #464444; font-weight: 600; }

/* Tarjeta full-width centrada (Steel Framing) */
.svc-card-full {
    max-width: 820px;
    width: calc(100% - 80px);
    margin: 0 auto 30px;
}

/* Ícono */
.svc-card-icon {
    margin-bottom: 32px;
    line-height: 0;
}
.svc-card-icon img {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Título de tarjeta */
.svc-card h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 24px;
}

/* Descripción de tarjeta */
.svc-card p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.78;
    margin-bottom: 16px;
}
.svc-card p:last-child { margin-bottom: 0; }

/* ---- Sección CTA ---- */
.svc-cta {
    text-align: center;
    padding: 80px 20px 100px;
    background-color: #ffffff;
}

.svc-cta h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 44px;
    color: #2B4C9A;
    letter-spacing: -0.6px;
    margin-bottom: 40px;
}

.svc-btn-cta {
    display: inline-block;
    background-color: #2B4C9A;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 26px;
    text-decoration: none;
    padding: 22px 90px;
    transition: background-color 0.3s;
}

.svc-btn-cta:hover { background-color: #1a346e; }

/* ===================================================
   CONTACT PAGE — Native form
   =================================================== */

.contact-page {
    padding-top: 100px;
    background-color: #ffffff;
    min-height: 100vh;
}

.contact-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

/* ── Intro ── */
.contact-intro {
    margin-bottom: 56px;
    text-align: center;
}

.contact-intro h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #2B4C9A;
    line-height: 1.35;
    margin-bottom: 24px;
}

.contact-intro p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #464444;
    line-height: 1.65;
    margin-bottom: 16px;
}
.contact-intro p:last-child { margin-bottom: 0; }

/* ── Form fields ── */
.cf-field {
    margin-bottom: 40px;
}

.cf-field-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #000000;
    margin-bottom: 12px;
}

.cf-field-label .req { color: red; }

.cf-input {
    display: block;
    width: 100%;
    background: #e9e9e9;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    height: 66px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #333;
    outline: none;
    transition: background 0.2s;
}
.cf-input:focus { background: #dde0e8; }
.cf-input::placeholder { color: #999; }

/* ── Radio groups ── */
.cf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-radio-opt {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: #222;
    padding: 4px 0;
    user-select: none;
}

/* Custom radio button */
.cf-radio-opt input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border: 2px solid #2B4C9A;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.cf-radio-opt input[type="radio"]:checked {
    background: #2B4C9A;
}
.cf-radio-opt input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: #ffffff;
    border-radius: 50%;
}

/* ── Otro + ¿Cuál? row ── */
.cf-radio-other {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cf-input-cual {
    flex: 1;
    background: #e9e9e9;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    height: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    color: #333;
    outline: none;
    opacity: 0.35;
    pointer-events: none;
    transition: background 0.2s, opacity 0.2s;
}
.cf-input-cual.active {
    opacity: 1;
    pointer-events: auto;
}
.cf-input-cual:focus { background: #dde0e8; }
.cf-input-cual::placeholder { color: #aaa; font-style: italic; }

/* ── Submit button ── */
.cf-submit {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 56px auto 0;
    background-color: #2B4C9A;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 24px;
    text-align: center;
    padding: 22px 40px;
    border: none;
    cursor: not-allowed;
    opacity: 0.4;
    transition: background 0.25s, opacity 0.25s;
}
.cf-submit:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}
.cf-submit:not(:disabled):hover { background-color: #1a346e; }

/* ── Popup confirmación ── */
.cf-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cf-popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cf-popup-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 56px 48px 48px;
    max-width: 520px;
    width: calc(100% - 40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cf-popup-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #2B4C9A;
    line-height: 1.3;
    margin: 0;
}

.cf-popup-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #464444;
    line-height: 1.6;
    margin: 0;
}

.cf-popup-btn {
    background-color: #2B4C9A;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 18px;
    border: none;
    padding: 16px 52px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.cf-popup-btn:hover { background-color: #1a346e; }

/* ===================================================
   INDEX PAGE — Hero dual logo
   =================================================== */

.hero-logo-desktop { display: block; }
.hero-logo-mobile  { display: none;  }

/* ===================================================
   INDEX PAGE — Gallery section cards
   =================================================== */

.gallery-card-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-card-cover {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px 32px;
    transition: background 0.3s;
}
.gallery-card:hover .gallery-card-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.gallery-card-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===================================================
   GALLERY MODAL  (3 niveles: categoría → subcarpeta → lightbox)
   =================================================== */

/* ── Overlay oscuro detrás del modal ── */
.goverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.goverlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Modal container ── */
.gmodal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    overflow: hidden;
}
.gmodal.open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Header del modal ── */
.gmodal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #2B4C9A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
}

.gmodal-back,
.gmodal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}
.gmodal-back:hover,
.gmodal-close:hover { background: rgba(255,255,255,0.15); }
.gmodal-close { font-size: 30px; font-weight: 300; line-height: 1; padding: 4px 10px; }

.gmodal-breadcrumb {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    flex: 1;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Vistas (ocultas por defecto) ── */
.gmodal-view {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
}
.gmodal-view.active {
    display: flex;
    flex-direction: column;
}

/* ── Vista 1: grilla de subcarpetas ── */
.gmodal-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-content: start;
}

.gmodal-folder-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}
.gmodal-folder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.gmodal-folder-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.gmodal-folder-name {
    background: #2B4C9A;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 14px 16px;
    text-align: center;
}

/* ── Vista 2: grilla de miniaturas ── */
.gmodal-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-content: start;
}

.gmodal-photo-thumb {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.gmodal-photo-thumb:hover {
    transform: scale(1.04);
    opacity: 0.88;
}

/* ── Vista 3: lightbox ── */
.gmodal-lightbox {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    padding: 12px 0 !important;
    background: #111111;
    position: relative;
}

.gmodal-lb-nav {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 52px;
    cursor: pointer;
    padding: 0 20px;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s;
    z-index: 2;
    user-select: none;
}
.gmodal-lb-nav:hover { opacity: 1; }

.gmodal-lb-imgwrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.gmodal-lb-imgwrap img {
    max-width: 100%;
    max-height: calc(100vh - 128px);
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.gmodal-lb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Carousel nav arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    font-size: 32px;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    z-index: 200;
    border-radius: 4px;
    transition: background 0.2s;
}
.carousel-nav:hover { background: rgba(0,0,0,0.6); }
.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

/* ===================================================
   RESPONSIVE DESIGN
   Breakpoints: mobile (≤480px), tablet (481-1023px), desktop (1024px+)
   =================================================== */

/* --- Tablet: up to 1023px --- */
@media (max-width: 1023px) {
    /* Header */
    .header {
        height: 80px;
        padding: 0 40px;
    }

    /* Nosotros page */
    .nosotros-main { padding: 120px 30px 60px; }
    .bio-container { max-width: 100%; padding: 0 20px; }
    .bio-entry { gap: 40px; }
    .bio-text h2 { font-size: 36px; }
    .bio-location { font-size: 17px; }
    .bio-text p { font-size: 16px; letter-spacing: -0.3px; }

    /* Menu */
    .menu-text, .nav a { font-size: 16px; }
    .nav { gap: 24px; }

    /* Services (old grid) */
    .about-content { padding-right: 5%; }
    .services-full-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card:nth-child(3n+2) { transform: none; }

    /* Contact form */
    .form-page-wrapper { padding: 110px 20px 60px; }

    /* ---- Servicios page (nuevo diseño) ---- */
    .svc-main { padding-top: 80px; }
    .svc-page-title { font-size: 46px; padding: 44px 20px 36px; }
    .svc-grid { gap: 20px; padding: 0 24px 20px; }
    .svc-card { padding: 40px 36px 44px; }
    .svc-card-icon img { height: 120px; }
    .svc-card h2 { font-size: 34px; margin-bottom: 18px; }
    .svc-card p  { font-size: 16px; line-height: 1.7; }
    .svc-card-full { width: calc(100% - 48px); }
    .svc-cta { padding: 60px 20px 80px; }
    .svc-cta h2  { font-size: 34px; margin-bottom: 30px; }
    .svc-btn-cta { font-size: 20px; padding: 18px 60px; }

    /* Contact form — tablet */
    .contact-wrapper { padding: 44px 28px 80px; }
    .contact-intro h1 { font-size: 24px; }
    .contact-intro p  { font-size: 16px; }
    .cf-field-label   { font-size: 19px; }
    .cf-input         { height: 58px; font-size: 16px; }
    .cf-radio-opt     { font-size: 18px; }
    .cf-submit        { font-size: 20px; padding: 18px 32px; }

    /* Gallery modal — tablet */
    .gmodal-header { height: 56px; padding: 0 16px; }
    .gmodal-breadcrumb { font-size: 17px; }
    .gmodal-back, .gmodal-close { font-size: 15px; }
    .gmodal-view { padding: 24px 24px; }
    .gmodal-folders-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
    .gmodal-folder-name { font-size: 15px; padding: 11px 14px; }
    .gmodal-photos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .gmodal-lb-nav { font-size: 40px; padding: 0 14px; }
}

/* --- Mobile: up to 767px (target 375px) --- */
@media (max-width: 767px) {
    /* Header — allow nav to wrap on small screens */
    .header {
        height: auto;
        min-height: 60px;
        padding: 10px 16px;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
    }

    .nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .menu-text,
    .nav a { font-size: 11px; }

    .nav a.active {
        padding-top: 3px;
    }

    /* Nosotros page */
    .nosotros-main { padding: 110px 16px 40px; }
    .bio-container { gap: 60px; padding: 0; }
    .bio-entry,
    .bio-entry.reverse {
        flex-direction: column;
        gap: 24px;
    }
    .bio-image-wrapper { width: 100%; }
    .bio-blueprint-frame { padding: 10px; padding-top: 20px; }
    .bio-text h2 { font-size: 28px; }
    .bio-location { font-size: 15px; }
    .bio-text p { font-size: 15px; letter-spacing: 0; }

    /* About section (index) */
    .container { flex-direction: column; padding: 40px 16px; }
    .about-image { padding: 10px 0; }

    /* Services redesign (index) */
    .services-redesign { padding: 60px 16px; }
    .services-grid { flex-direction: column; align-items: center; }
    .title-light { font-size: 28px; }
    .title-bold { font-size: 36px; }

    /* Services full grid (old — servicios page) */
    .services-full-grid {
        grid-template-columns: 1fr;
        gap: 60px 20px;
        margin-top: 60px;
        padding: 0 16px;
    }
    .service-card:nth-child(3n+2) { transform: none; }

    /* Gallery */
    .gallery-section { padding: 40px 16px; }
    .gallery-container { gap: 16px; }
    .gallery-card { min-width: 100%; height: 260px; }

    /* Footer */
    .main-footer { padding: 40px 16px; }
    .footer-container {
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
    }
    .footer-logo img { width: 130px; }
    .footer-info .info-item span,
    .footer-info .info-item a { font-size: 14px; }
    .info-item img { width: 22px; }
    .footer-info .info-item { gap: 10px; }

    /* Contact form */
    .form-page-wrapper { padding: 90px 10px 30px; }
    .google-form-container iframe { min-height: 1500px; }

    /* CTA section (nosotros/index) */
    .cta-nosotros { padding: 30px 16px; }
    .cta-container h2 { font-size: 26px; }
    .btn-contact-cta { padding: 14px 30px; font-size: 16px; }

    /* ---- Servicios page (nuevo diseño) — mobile ---- */
    .svc-main { padding-top: 100px; }
    .svc-page-title { font-size: 30px; padding: 28px 16px 24px; }

    .svc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px 16px;
    }

    .svc-card {
        padding: 32px 22px 36px;
        border-radius: 18px;
    }

    .svc-card-full {
        width: calc(100% - 32px);
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .svc-card-icon img { height: 90px; }
    .svc-card-icon      { margin-bottom: 20px; }

    .svc-card h2 { font-size: 24px; margin-bottom: 14px; }
    .svc-card p  { font-size: 15px; line-height: 1.65; }

    .svc-cta { padding: 48px 16px 64px; }
    .svc-cta h2 { font-size: 24px; letter-spacing: 0; margin-bottom: 24px; }
    .svc-btn-cta {
        font-size: 17px;
        padding: 16px 40px;
        width: 100%;
        max-width: 320px;
        display: block;
        margin: 0 auto;
    }

    /* Contact form — mobile */
    .contact-page { padding-top: 80px; }
    .contact-wrapper { padding: 32px 16px 64px; }
    .contact-intro { margin-bottom: 36px; }
    .contact-intro h1 { font-size: 20px; }
    .contact-intro p  { font-size: 15px; }
    .cf-field { margin-bottom: 28px; }
    .cf-field-label { font-size: 16px; margin-bottom: 8px; }
    .cf-input { height: 52px; font-size: 15px; border-radius: 10px; }
    .cf-radio-opt { font-size: 16px; gap: 12px; }
    .cf-radio-opt input[type="radio"] { width: 26px; height: 26px; }
    .cf-radio-opt input[type="radio"]:checked::after { inset: 5px; }
    .cf-input-cual { height: 44px; font-size: 15px; }
    .cf-submit { font-size: 18px; padding: 16px 24px; max-width: 100%; margin-top: 36px; }
    .cf-popup-box { padding: 36px 24px 32px; }
    .cf-popup-title { font-size: 22px; }
    .cf-popup-subtitle { font-size: 15px; }
    .cf-popup-btn { font-size: 16px; padding: 14px 36px; }

    /* Hero dual logo — swap on mobile */
    .hero-logo-desktop { display: none; }
    .hero-logo-mobile  { display: block; }

    .main-logo { width: 260px; height: auto; margin-top: 220px; }

    /* Gallery card labels — smaller on mobile */
    .gallery-card-label { font-size: 24px; }
    .gallery-card-overlay { padding: 16px 18px; }

    /* Gallery modal — mobile */
    .gmodal-header { height: 52px; padding: 0 10px; }
    .gmodal-breadcrumb { font-size: 14px; }
    .gmodal-back { font-size: 13px; padding: 6px 8px; }
    .gmodal-close { font-size: 24px; padding: 4px 8px; }
    .gmodal-view { padding: 16px; }
    .gmodal-folders-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
    .gmodal-folder-name { font-size: 13px; padding: 10px 12px; }
    .gmodal-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    .gmodal-lb-nav { font-size: 30px; padding: 0 8px; }
    .gmodal-lb-imgwrap img { max-height: calc(100vh - 112px); }
    .gmodal-lb-counter { font-size: 13px; padding: 3px 10px; bottom: 10px; }

    /* Carousel nav — smaller on mobile */
    .carousel-nav { font-size: 22px; padding: 8px 12px; }
}