/* ==========================================================================
   HOJA DE ESTILOS UNIFICADA Y DEPURADA - PORTADA (index.php)
   A.R.C. INMOBILIARIA INDUSTRIAL QUERÉTARO
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.contenedor {
    padding: 30px 0;
    width: 97%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================================== */
.titulo {
    color: #f2f2f2;
    background-color: rgba(47, 72, 95, .85);
    border-left: 15px solid #f5bb3d;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    padding: 15px 25px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
    width: 100%;
}

/* ==========================================================================
   HEADER & HERO BG (ESTILOS ORIGINALES PARA PC DE ESCRITORIO)
   ========================================================================== */
header {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../terrenos-industriales-en-queretaro/terrenos-industriales-en-queretaro.jpg') no-repeat center center / cover;
    background-attachment: scroll;
    animation: zoomEffect 60s infinite alternate;
    z-index: -1;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

/* NAVEGACIÓN Y LOGOS */
nav {
    width: 100%;
}

.terrenos-industriales-en-queretaro {
    height: 150px;
    position: relative;
    z-index: 2;
}

.contenedor-nav {
    display: flex;
    margin: auto;
    height: 150px;
    width: 90%;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    overflow: hidden;
}

.terrenos-industriales-en-queretaro-logo img {
    height: 100px;
    box-shadow: 0 0 10px 0 rgba(228, 222, 222, 0.2);
    background: rgba(226, 228, 231, 0.5);
    border-radius: 20px;
}

/* TEXTOS HEADER (DISEÑO ORIGINAL PC) */
.textos-header-nuevo {
    text-align: center;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.titulo-principal {
    background: rgba(47, 72, 95, 0.8);
    color: rgb(201, 198, 198);
    padding: 10px 25px;
    border-radius: 20px;
    border-left: 12px solid #c7a005;
    font-size: 55px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.titulo-secundario {
    background: rgba(47, 72, 95, 0.8);
    color: rgb(201, 198, 198);
    padding: 10px 25px;
    border-radius: 20px;
    border-left: 12px solid #c7a005;
    font-size: 35px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.cuadro-impacto {
    background: rgba(16, 23, 29, 0.7);
    color: rgb(226, 219, 219);
    padding: 32px;
    border-radius: 20px;
    border-left: 12px solid #c7a005;
    max-width: 640px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    margin-bottom: 40px;
}

.txt-principal {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.txt-principal span {
    color: #ffcc00;
}

.txt-secundario {
    font-size: 1.4rem;
    margin-top: 20px;
    color: #cccccc;
    font-weight: 300;
    max-width: 700px;
}

.datos-contacto-header {
    background: rgba(190, 154, 6, 0.8);
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 20px;
    margin-bottom: 40px;
}

.datos-contacto-header p {
    margin: 5px 0;
}

.link-contacto {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.link-contacto:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* CLASES EXCLUSIVAS PARA CONTROLAR TAMAÑOS EN ESCRITORIO (PC) */
.contacto-telefono-movil {
    font-size: 25px;
    display: inline-block;
}

.contacto-email {
    font-size: 18px;
    display: inline-block;
    word-break: break-word;
}

/* ANIMACIONES */
.titulo-principal,
.titulo-secundario,
.cuadro-impacto,
.datos-contacto-header {
    opacity: 0;
    transform: translateY(20px);
}

.titulo-principal { animation: revelarCascada 0.8s ease-out 0s forwards; }
.titulo-secundario { animation: revelarCascada 0.8s ease-out 0.2s forwards; }
.cuadro-impacto { animation: revelarCascada 0.8s ease-out 0.4s forwards; }
.datos-contacto-header { animation: revelarCascada 0.8s ease-out 0.6s forwards; }

@keyframes revelarCascada {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==========================================================================
   SECCIÓN SERVICIOS / TARJETAS
   ========================================================================== */
.about-services {
    background: rgba(47, 72, 95, 0.1);
    padding-bottom: 30px;
}

.servicio-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.servicio-ind {
    width: 33%;
    text-align: center;
    overflow: hidden;
    height: 400px;
    margin: 0 0 40px 0;
    border: 1px solid #b8b1b1;
    border-left: 3px solid #67686b;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.servicio-ind img {
    width: 90%;
    object-fit: cover;
    transition: transform 0.3s;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .9);
    border-radius: 20px;
}

.servicio-ind a:hover img {
    transform: rotate(1deg) scale(1.1);
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.9);
}

.servicio-ind h3 {
    margin: 10px 0;
    font-size: 17px;
}

.servicio-ind h4 {
    margin: 10px 10px 10px 20px;
    color: seagreen;
    text-align: left;
}

.servicio-ind h5 {
    font-size: 15px;
}

.servicio-ind p {
    font-weight: 300;
    text-align: justify;
    margin: 0px 20px;
}

.precio {
    display: flex;
    margin: 10px 20px;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   TARJETAS DE CONTACTO Y FOOTER
   ========================================================================== */
.clientes {
    background: #2f485f;
}

.cards {
    display: flex;
    justify-content: space-evenly;
}

.cards .card {
    background: #a2a1eb1e;
    display: flex;
    width: 49%;
    height: 250px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
}

.cards .card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card {
    width: 70%;
    color: #fff;
}

.contenido-texto-card li {
    font-weight: 300;
    padding-top: 15px;
    font-size: 18px;
    list-style: none;
}

footer {
    background: #2f485f;
    padding: 10px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer {
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
}

.content-foo {
    text-align: center;
}

.content-foo h4 {
    color: #fff;
    border-bottom: 3px solid #f5bb3d;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p {
    color: #ccc;
    font-size: 22px;
}

/* ==========================================================================
   REGLAS EXCLUSIVAS PARA LAPTOPS Y PANTALLAS BAJAS (SOLUCIONA DESBORDAMIENTO)
   ========================================================================== */
@media screen and (min-width: 901px) and (max-height: 850px) {
    .terrenos-industriales-en-queretaro,
    .contenedor-nav {
        height: 110px;
    }
    .terrenos-industriales-en-queretaro-logo img {
        height: 75px;
    }
    .titulo-principal {
        font-size: 44px;
        margin-bottom: 20px;
        padding: 8px 20px;
    }
    .titulo-secundario {
        font-size: 30px;
        margin-bottom: 20px;
        padding: 8px 20px;
    }
    .cuadro-impacto {
        padding: 18px 25px;
        margin-bottom: 20px;
    }
    .txt-principal {
        font-size: 1.3rem;
    }
    .txt-secundario {
        font-size: 1.15rem;
        margin-top: 10px;
    }
    .datos-contacto-header {
        padding: 12px 25px;
        margin-bottom: 20px;
    }
    .contacto-telefono-movil {
        font-size: 22px;
    }
}

/* ==========================================================================
   DISEÑO RESPONSIVO ORIGINAL (MEDIA QUERIES PARA CELULAR Y TABLET)
   ========================================================================== */
@media screen and (max-width: 1000px) {
    .titulo-principal { font-size: 45px; margin-bottom: 30px; }
    .titulo-secundario { font-size: 35px; margin-bottom: 30px; }
    .txt-principal { font-size: 1.5rem; }
    .cuadro-impacto { padding: 20px; }
    .txt-secundario { font-size: 19px; }
}

@media screen and (max-width: 900px) {
    header { background-position: center; }
    .titulo { font-size: 24px; padding: 12px 20px; }
    .cards { flex-direction: column; justify-content: center; align-items: center; }
    .cards .card { width: 100%; }
    .cards .card:first-child { margin-bottom: 30px; }
    .servicio-cont { justify-content: center; flex-direction: column; }
    .servicio-ind { width: 100%; text-align: center; height: 530px; }
    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2) { margin-bottom: 20px; }
    .servicio-ind img { width: 85%; }
    .contenedor-footer { flex-direction: column; border: none; padding-bottom: 1px; width: 98%; }
    .content-foo { margin-bottom: 20px; text-align: center; }
    .content-foo h4 { border: none; }
    .content-foo p { font-size: 15px; border-bottom: 1px solid #f2f2f2; padding-bottom: 20px; }
}

@media screen and (max-width: 800px) {
    .servicio-ind { height: 480px; }
    .titulo-principal { font-size: 40px; }
    .titulo-secundario { font-size: 30px; }
    .txt-principal { font-size: 1.5rem; }
    .cuadro-impacto { padding: 20px;}
    .txt-secundario { display: none !important; }
}

@media screen and (max-width: 768px) {
    .titulo-principal,
    .titulo-secundario,
    .cuadro-impacto,
    .datos-contacto-header {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        filter: none !important;
    }
}

@media screen and (max-width: 700px) {
    .servicio-ind { height: 450px; }
    .datos-contacto-header { font-size: 0.9rem; }
    .contenido-texto-card li { font-size: 14px; }
    .cards .card > .contenido-texto-card { width: 98%; }
    
    /* Control de tamaños en móviles */
    .contacto-telefono-movil {
        font-size: 24px;
    }
    
    .contacto-email {
        font-size: 17px;
    }
}

@media screen and (max-width: 650px) {
    .titulo-principal { font-size: 35px; }
    .titulo-secundario { font-size: 25px; }
    .txt-principal { font-size: 1.4rem; }
    .cuadro-impacto { padding: 10px; }
}

@media screen and (max-width: 600px) {
    .servicio-ind { height: 400px; }
}

@media screen and (max-width: 500px) {
    .contenedor-nav { height: 150px; }
    nav { text-align: center; }
    .titulo { font-size: 20px; padding: 10px 15px; border-left-width: 5px; }
    .terrenos-industriales-en-queretaro-logo img { height: 80px; }
    .titulo-principal { font-size: 30px; margin-bottom: 20px; }
    .titulo-secundario { font-size: 20px; margin-bottom: 20px; }
    .txt-principal { font-size: 1.2rem; }
    .cards .card { height: 300px; flex-direction: column; align-items: center; }
    .cards .card img { width: 90px; height: 90px; }
    
    .contacto-telefono-movil {
        font-size: 23px;
    }
    
    .contacto-email {
        font-size: 16px;
    }
}

@media screen and (max-width: 400px) {
    .terrenos-industriales-en-queretaro-logo img { height: 70px; }
    .titulo-principal { font-size: 25px; margin-bottom: 15px; }
    .titulo-secundario { font-size: 18px; margin-bottom: 15px;  }
    .txt-principal { font-size: 1.1rem; }
    
    .contacto-telefono-movil {
        font-size: 22px;
    }
    
    .contacto-email {
        font-size: 15px;
    }
}