
:root {
    --color-principal: #ebc443;
    --color-secundario: #2e294e;
    --color-terciario: #1b998b;
    --color-cuaternario: #2c2caa;
    --color-otros: #984447;
    --color-otros-hover: #995558;
    --color-texto: #333;
    --color-fondo: #f9f9f9;
    --color-borde: #e1e1e1;
    --color-bg-content: #ffffff;

    --shadown-content: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-results: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

header {
    background-color: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.text-limit{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4; /* Número de líneas a mostrar */
    line-clamp: 4; /* Número de líneas a mostrar */
    padding: 15px;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hidden{
    display: none;
}

.not-resize{
    resize: none !important;
    width: 100%;  /* Ancho fijo */
    height: 150px; /* Altura fija */
}

.block{
    display: block;
}

.activeGalBtn {
    background-color: var(--color-terciario);
}

.deactiveGalBtn {
    background-color: var(--color-fondo);
}

.flex{
    display: flex;
}

.code-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.padding-td20-lr20{
    padding: 20px;
    box-sizing: border-box;
}

.padding-lr20{
    padding: 0 20px;
    box-sizing: border-box;
}

.padding-td20{
    padding: 20px 0;
    box-sizing: border-box;
}

.margin-td40-lr20{
    margin: 40px 20px;
}

.margin-td20-lr20{
    margin: 20px;
}

.margin-td20{
    margin: 20px 0;
}

.margin-lr20{
    margin: 0 20px;
}

.float-rd{
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1001;
}

.float-rd a{
    color: var(--color-terciario);

}

.max-leng{
    max-height: 400px;
    overflow: hidden;
}

#error-page{
    min-height: 80vh;
    background-color: var(--color-otros);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.Error-results-info{
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    color: var(--color-borde);
}

.bg-color-white{
    background-color: var(--color-bg-content);
    /*box-shadow: 0 0 4px rgba(0,0,0,0.1);*/
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-left: 10px;
    color: var(--color-principal);
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-principal);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--color-bg-content);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-principal);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-bg-content);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    /*background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');*/
    background-size: cover !important; 
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color-bg-content);
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

#hero-home{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(6\).png');
}

#hero-ours{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(2\).png');
}

#hero-gallery{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(4\).png');
}

#hero-services{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(9\).jpg');
}

#hero-contact{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(3\).png');
}

#hero-terms,
#hero-privacy{
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(8\).png');
}

#hero-home,
#hero-ours,
#hero-gallery,
#hero-services,
#hero-contact,
#hero-terms,
#hero-privacy{
    background-size: cover !important; 
    background-repeat: no-repeat;
}


.page-hero {
    background-color: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.btn3,
.btn,
.btn2{
    background-color: var(--color-principal);
    color: var(--color-secundario);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.btn3,
.btn2 {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}


.btn3 {
    border-radius: 20px;
}

.btn-extend {
    display: block;
    width: 100%;
    background: var(--color-principal);
    color: var(--color-secundario);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn,
.btn-extend{
    height: 50px;
}

.btn-extend:hover,
.btn:hover {
    background-color: #d9ac2a;
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: var(--color-terciario);
    color: var(--color-bg-content);
}

.btn-secondary:hover {
    background: #16877a;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-principal);
    color: var(--color-principal);
}

.btn-primary {
    background-color: var(--color-principal);
    color: white;
}

.gallery-home-info:hover{
    cursor:auto;
}

.btn-primary:hover {
    background-color: #252142;
}

.btn-outline:hover {
    background-color: var(--color-principal);
    color: white;
}

.map-container {
    margin-top: 4rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.process-step {
    background: var(--color-bg-content);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
}

.process-step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-principal);
    color: var(--color-secundario);
    border-radius: 50%;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-terciario);
    color: var(--color-bg-content);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--color-principal);
    color: var(--color-secundario);
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-secundario);
    position: relative;
}


.section-title2 { /* de panel admin */
    color: var(--color-secundario);
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-principal);
    margin: 10px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.projects-grid{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.property-card-projects-grid{
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
    /*display: flex;*/
    cursor: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;

}



.service-card {
    background: var(--color-bg-content);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-terciario);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: '✓';
    color: var(--color-terciario);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.headquarters-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info2 {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
    justify-content: flex-start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item2 {
    width: 40%;
    margin-left: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

}

.contact-icon {
    color: var(--color-terciario);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-map-home iframe{
    width: 100%;
    height: 100%;
}

.contact-form {
    background: var(--color-bg-content);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}


.form-group2{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-secundario);
    justify-content: space-between;
}

.form-group3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form-group4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;

    color: var(--color-secundario);
}

.form-group2 input,
.form-group2 textarea,
.form-group2 select,
.form-group input,
.form-group textarea,
.form-group select  {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}


.form-group input,
.form-group textarea,
.form-group select  {
    min-width: 100%;
}

.parts-group input,
.parts-group textarea,
.parts-group select  {
    min-width: 100%;
}
.parts-group{
    width: 48%;
    position: relative;
}

.form-group textarea {
    min-height: 100%;
    resize: vertical;
}



.form-group2  #password-user{
    min-width: 60% !important;
    max-width: 90% !important;
}

.btns-hidde-show{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    /* border: 1px solid var(--color-borde); */
    border-radius: 4px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-terciario);
    box-shadow: 0 0 0 2px rgba(27, 153, 139, 0.2);
}

 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

 .form-column {
    padding: 10px 0;
}

.legal-content {
    background: var(--color-bg-content);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--color-secundario);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-principal);
}

.legal-section h3 {
    color: var(--color-terciario);
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.privacy-highlight {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-terciario);
    margin: 1.5rem 0;
}

.contact-privacy {
    background-color: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.contact-privacy a {
    color: var(--color-principal);
    text-decoration: none;
    font-weight: bold;
}

.last-updated {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-principal);
    margin-top: 2rem;
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--color-bg-content);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    color: var(--color-terciario);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.team-grid-odd {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-grid-even {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.team-member {
    min-height: 500px;
    background: var(--color-bg-content);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.member-image {
    height: 350px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    transition: transform 0.3s;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--color-terciario);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-principal);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: var(--color-bg-content);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 45%;
}

.timeline-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-principal);
    color: var(--color-secundario);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}

.login-container {
    background: var(--color-bg-content);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-sizing: border-box;
}

.login-header {
    background: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header .logo-icon {
    color: var(--color-principal);
    font-size: 2rem;
}

.login-header p {
    opacity: 0.8;
}

.login-body {
    padding: 2rem;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-links a {
    color: var(--color-terciario);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.register-container {
    background: var(--color-bg-content);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.register-header {
    background: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 2rem;
    text-align: center;
}

.register-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.register-header .logo-icon {
    color: var(--color-principal);
    font-size: 2rem;
}

.register-header p {
    opacity: 0.8;
}

.register-body {
    padding: 2rem;
}

.register-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.register-links a {
    color: var(--color-terciario);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.register-links a:hover {
    text-decoration: underline;
}

.terms {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}

.terms a {
    color: var(--color-terciario);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.step.active {
    background: var(--color-terciario);
    color: var(--color-bg-content);
}

.step.completed {
    background: var(--color-principal);
    color: var(--color-secundario);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.user-type-selector {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.user-type {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.user-type.active {
    background: var(--color-terciario);
    color: var(--color-bg-content);
}

.user-type:hover:not(.active) {
    background: #e9ecef;
}

.demo-accounts {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.demo-accounts h4 {
    margin-bottom: 0.5rem;
    color: var(--color-secundario);
}

.demo-account {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

/* panel admin */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--color-secundario);
    color: var(--color-bg-content);
    transition: all 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    min-width: 100%;
    text-align: center;
    color: var(--color-principal);
}

.admin-menu {
    padding: 1rem 0;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section h3 {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-principal);
    opacity: 0.7;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-bg-content);
    border-left-color: var(--color-principal);
}

.menu-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: var(--color-bg-content);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-borde);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadown-content);
}

.header-left h2 {
    color: var(--color-secundario);
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-menu span{
    color: var(--color-texto);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-terciario);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-content);
    font-weight: bold;
}

.admin-content {
    max-width: 100vw;
    flex: 1;
    padding: 2rem;
    background: var(--color-fondo);
    overflow-y: auto;
}

.tabs-panel-admin{
    display: flex;
    flex-wrap: nowrap;
    /*
    border-radius: 8px 8px 0 0;
    padding: 1.2rem;
    box-shadow: var(--shadown-content);
    background-color: var(--color-secundario);
    */
}

.tabs-panel-admin a:first-child {
    border-radius: 8px 0 0 0;
}

.tabs-panel-admin a:last-child {
    border-radius: 0 8px 0 0;
}

.tabs-headers{
    width: 100%;
    text-align: center;
    list-style: none;
    text-decoration: none;
    /*
    margin-right: 10px;
    padding: 0 5px;
    */
    padding: 15px;
    box-sizing: border-box;
    color: var(--color-bg-content);
    background-color: var(--color-secundario);
    z-index: 99;
    transition: all ease-in-out .2s;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget {
    background: var(--color-bg-content);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadown-content);
}

.widget-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-title {
    color: var(--color-secundario);
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-stat {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-terciario);
    margin: 0.5rem 0;
}

.widget-chart {
    height: 80px;
    background: linear-gradient(90deg, var(--color-terciario), var(--color-principal));
    border-radius: 4px;
    margin-top: 1rem;
}

.content-section {
    max-width: 100%;
    position: relative;
    background: var(--color-bg-content);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadown-content);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table{
    overflow-x: scroll;
}

table {
    width: 100%;
    max-width: 100%;
    position: relative;
    border-collapse: collapse;
    text-align: center;
}

thead{
    color: var(--color-bg-content);
    background-color: var(--color-secundario);
}

tbody tr:nth-child(even){
    background-color: var(--color-borde);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-borde);
}

th {
    font-weight: 600;
}

th:first-child,
td:first-child,
th:last-child,
td:last-child{
  min-width: 50%;
}

th.sortable::after {
    content: '↕';
    margin-left: 0.5rem;
    opacity: 0.5;
}

th.asc::after {
    content: '↑';
    opacity: 1;
}

th.desc::after {
    content: '↓';
    opacity: 1;
}

tbody tr td img {
    max-width: 100%;
    max-height: 100%;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pagado {
    background: #d4edda;
    color: #155724;
}

.status-pendiente {
    background: #fff3cd;
    color: #856404;
}

.status-mora {
    background: #f8d7da;
    color: #721c24;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-secundario);
    font-size: 1.5rem;
    cursor: pointer;
}

/* fin panel admin */

/* alerta */
#pop-alert{
    position: fixed;
    width: 400px;
    max-height: 200px;
    bottom: 10px;
    right: 10px;
    /*display: flex;*/
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

#pop-alert hr{
    background-color: var(--color-texto);
}

#close-pop{
    list-style: none;
    text-decoration: none;
    position: absolute;
    right: 10px;
    top: 10px;
}

.success a,
.success{
    color: var(--color-bg-content);
    background-color: var(--color-terciario);
}

.error a,
.error{
    color: var(--color-fondo);
    background-color: var(--color-otros-hover);
}

.info a,
.info{
    color: var(--color-texto);
    background-color: var(--color-principal);
}

.edit a,
.edit{
    color: var(--color-bg-content);
    background-color: var(--color-cuaternario);
}


/*  galeria */
.search-bar {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--color-borde);
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--color-secundario);
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--color-borde);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--color-texto);
}

.filter-btn:hover {
    background: var(--color-fondo);
}

.filter-btn.active {
    background: var(--color-secundario);
    color:var(--color-fondo);
}

.pinterest-grid {
    columns: 5 280px;
    column-gap: 20px;
    margin-bottom: 40px;
}

.pin-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--color-fondo);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pin-image {
    width: 100%;
    border-radius: 16px 16px 0 0;
    display: block;
    z-index: 99;
}

.pin-info {
    position: absolute;
    bottom: 0;
    padding: 15px;
    background-color: var(--color-fondo);
    text-align: center;
    width: 100%;
}

.pin-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-texto);
    font-size: 14px;
    line-height: 1.3;
}

.pin-description {
    color: var(--color-texto);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.pin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #767676;
}

.pin-save {
    background: var(--color-secundario);
    color: var(--color-bg-content);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: back 0.3s ease;
}

.pin-save:hover {
    background: var(--color-secundario);
}

.pin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pin-card:hover .pin-actions {
    opacity: 1;
}

.action-btn {
    background: var(--color-bg-content);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.pin-modal.active {
    display: flex;
}

.modal-forgot-update,
.modal-forgot-request{
    background: var(--color-bg-content);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    position: relative;    
}

.modal-content-project,
.modal-content {
    background: var(--color-bg-content);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
}

.modal-forgot-update,
.modal-forgot-request,
.modal-content-project {
    max-height: 57vh;
}

.modal-content {
    max-height: 90vh;
}

.modal-image {
    position: relative;
    flex: 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-info-project,
.modal-info {
    padding: 30px;
    overflow-y: auto;
}

.modal-info {
    flex: 0 0 300px;
}

.modal-info-project{
    flex: 0 0 500px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: var(--color-bg-content);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background: rgba(0,0,0,0.5);
    color: var(--color-bg-content);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0,0,0,0.7);
}

/*projects info*/
.modal-gallery-imgs{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#imgsGallery{
    background-color: var(--color-bg-content);
}

#imgsGallery,
#imgsGallery img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

#modalBtnAfter,
#modalBtnNext{
    position: absolute;
    top: 0;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
}

#modalBtnAfter{
    left: 0;
}
#modalBtnNext{
    right: 0;
}

#modalBottomInfo,
#modalTopInfo{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: absolute;
    left: 0;
    padding: 5px;
    box-sizing: border-box;
    color: var(--color-texto);
    font-size: 1em;
    background-color: var(--color-bg-content);
}

#modalTopInfo{
    top: 0;
}

#modalBottomInfo{
    bottom: 0;
}

#modalBottomInfo span,
#modalTopInfo span{
    width: 100%;
    text-align: center;
}

#modalTags{
    width: 100%;
}

#modalTags,
#modalFeatures,
.modal-location{
    justify-content: space-around;
}

#modalFeatures span,
.modal-location span{
    padding: 0 5px;
}



.modal-location span:first-child{
    border-right: 1px solid var(--color-borde);
}

.modal-location span:last-child{
    border-left: 1px solid var(--color-borde);
}

#modal-description{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limita a 3 líneas */
    line-clamp: 3;
    overflow: hidden;
}


.modal-action-btn{
    justify-content: space-around;
    padding: 10px;
}

.modal-action-btn a{
    text-decoration: none;
    list-style: none;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}

/*fin projects info*/



.mobile-carousel {
    height: auto;
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
}

.carousel-prev,
.carousel-next {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-secundario);
}

/*  fin galeria */

/*  projects */
.contract-project,
.state-project{
    position: absolute;
    text-align: center;
    padding: 2px;
    width: 100%;
    box-sizing: border-box;
    z-index: 99;
}

.contract-project{
    top: 0;
    color: var(--color-bg-content);
    background-color: var(--color-terciario);
}

.state-project{
    bottom: 0;
    color: var(--color-bg-content);
    background-color: var(--color-secundario);
}

#hero-projects{
    min-height: 280px;
    padding-bottom: 50px;
    background: linear-gradient(rgba(46, 41, 78, 0.8), rgba(46, 41, 78, 0.8)), url('../imgs/heros/heros\ \(7\).png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;        
}

.search-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-results);
    margin-top: -130px;
    position: relative;
    z-index: 90;
}

.search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-borde);
}

.search-tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.search-tab.active {
    color: var(--color-principal);
    border-bottom: 3px solid var(--color-secundario);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.search-btn {
    color: var(--color-secundario);
    background-color: var(--color-principal);
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    margin-top: 24px;
}

.search-btn:hover {
    background-color: var(--color-secundario);
    color: var(--color-principal);

}

.main-content {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    /*grid-template-columns: 1fr;*/
    gap: 30px;
}

.filters-project {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-project h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.filter-project-group {
    margin-bottom: 25px;
}

.filter-project-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--dark);
}

.filter-project-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-project-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-project-option input {
    width: 16px;
    height: 16px;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-count {
    font-size: 18px;
    color: var(--gray);
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: white;
}

.property-card {
    position: relative;
    max-height: 300px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
    display: flex;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 300px;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-secundario);
    margin-bottom: 5px;
}

.property-address {
    color: var(--color-borde);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-terciario);
}

.property-description {
    margin-bottom: 15px;
    color: var(--color-texto);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-features {
    display: flex;
    gap: 20px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-terciario);
    font-size: 14px;
}

.property-feature i {
    color: var(--color-terciario);
}

.property-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.property-tag {
    background-color: var(--color-fondo);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-terciario);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    background-color: var(--color-fondo);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn.active {
    background-color: var(--color-secundario);
    color: var(--color-fondo);
    border-color: var(--color-secundario);
}

.pagination-btn:hover:not(.active) {
    background-color: var(--color-fondo);
}

.property-detail {
    background-color: var(--color-fondo);
    border-radius: 8px;
    overflow: clip; /* antes hidden pero no permitia el sticky del formulario de contacto de proyectos */
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.property-detail-header {
    position: relative;
}

.property-detail-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    align-items: center;
}


.gallery-detail-images{
    min-height: 100%;
}

.gallery-detail-images img{
    /*.property-detail-image img {*/
    width: 100%;    
    height: 100%;
    object-fit: scale-down;

}

.btns-gallery-detail-images{
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

.btns-gallery-detail-img{
    padding: 5px;
    border: none;
    border-radius: 50%;
    margin: 0 5px;
    transition: all ease-in-out .2s;
}

.property-detail-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-terciario);
    color: var(--color-fondo);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 700;
}

.property-detail-content {
    height: 100%;
    padding: 0 30px;
    display: grid;
    position: relative;
    grid-template-columns: 2fr 1fr;
    /*grid-template-columns: 1fr;*/
    gap: 30px;
}

.property-detail-title {
    font-size: 28px;
    color: var(--color-secundario);
    margin-bottom: 10px;
}

.property-detail-location,
.property-detail-address {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-detail-generals,
.property-detail-features {
    display: grid;
    gap: 20px;
    margin: 50px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-borde);
    border-bottom: 1px solid var(--color-borde);
}

.property-detail-features {
    grid-template-columns: repeat(4, 1fr);
}

.property-detail-generals{
    grid-template-columns: repeat(3, 1fr);
}

.property-detail-feature {
    text-align: center;
}

.property-detail-feature i {
    font-size: 24px;
    color: var(--color-terciario);
    margin-bottom: 8px;
}

.property-detail-feature-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-secundario);
}

.property-detail-feature-label {
    font-size: 14px;
    /*color: var(--color-borde);*/
    color: var(--color-terciario);
}

.property-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.property-detail-amenities {
    margin-bottom: 30px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity i {
    color: var(--color-terciario);
}

.contact-sidebar {
    background-color: var(--color-fondo);
    position: sticky;
    top:60px;
    padding: 25px;
    border-radius: 8px;
    height: fit-content; /* Asegura que el `sticky` funcione correctamente */
    
}

.agent-info {
    text-align: center;
    margin-bottom: 25px;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.agent-phone {
    font-size: 16px;
    color: var(--color-terciario);
    margin-bottom: 15px;
}

.contact-form-project .form-group {
    margin-bottom: 15px;
}

.contact-form-project textarea {
    min-height: 120px;
    resize: vertical;
}
/*  fin projects */

/*  footer */
footer {
    background-color: var(--color-secundario);
    color: var(--color-bg-content);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-column h3 {
    color: var(--color-principal);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.gallery-detail-images img:hover{
    cursor: pointer;
}

.footer-column ul li a:hover {
    color: var(--color-principal);
}

.btns-gallery-detail-img:hover {
    cursor:pointer;
    padding: 6px;
}

.activeGalBtn:hover .deactiveGalBtn{
   opacity: .3;
} 

.footer-bottom {
    position: relative;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pin-card {
    animation: fadeIn 0.5s ease;
}

.tabs-headers:hover{
    color: var(--color-secundario);
    font-weight: bold;
    background-color: var(--color-bg-content);
}

.tabs-headers:active {
    color: var(--color-secundario);
    font-weight: bold;
    background-color: var(--color-bg-content);
}

@media (max-width: 480px){
    .login-container {
        margin: 1rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }

    .register-container {
        margin: 0;
    }
    
    .register-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    /* galeria */
    .search-bar {
        margin-bottom: 30px;
    }
    
    .pin-card {
        margin-bottom: 15px;
    }
}

 @media (max-width: 600px) {
    .pinterest-grid {
        columns: 2 1fr;
    }
    
    .modal-content {
        margin: 5px;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .logo{
        width: 50%;
    }

    .mobile-menu-btn {
        display: block;
        width: 50%;
        text-align: right;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-secundario);
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .timeline:before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .footer-content{
        display: flex;
        flex-direction: column;
        padding: 20px;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .footer-column{
        width: 50%;
        justify-content: center;
        align-items: center;
    }

    .footer-column h3,
    .footer-column p,
    .footer-column ul { 
        min-width: 100%;
    }

    /* panel admin */
    .sidebar-header {
        padding: 1rem;
    }

    .sidebar-header h1 {
        min-width: 100%;
        text-align: center;
        font-size: 1rem;
        color: var(--color-principal);
    }

    .admin-sidebar {
        width: 80%;
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        z-index: 1000;
        overflow-y: scroll;
    }

    .tabs-panel-admin{
        display: flex;
        flex-direction: column;
    }

    .tabs-headers{
        border-radius: 0 !important;
    }

    .admin-sidebar::-webkit-scrollbar {
        width: 8px;     /* Tamaño del scroll en vertical */
        height: 8px;    /* Tamaño del scroll en horizontal */
        /*display: none;*/  /* Ocultar scroll */
    }

    .projects-grid::-webkit-scrollbar{
        display: none;
    }

    /* Ponemos un color de fondo y redondeamos las esquinas del thumb */
    .admin-sidebar::-webkit-scrollbar-thumb {
        background: var(--color-otros);
        border-radius: 4px;
    }


    /* Cambiamos el fondo y agregamos una sombra cuando esté en hover */
    .admin-sidebar::-webkit-scrollbar-thumb:hover {
        cursor:pointer;
        background: var(--color-otros-hover);
        box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    }

    /* Cambiamos el fondo cuando esté en active */
    .admin-sidebar::-webkit-scrollbar-thumb:active {
        background-color: var(--color-otros);
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-menu {
        padding: 0.7rem 0;
    }

    .menu-section {
        margin-bottom: 1rem;
    }

    .menu-section a {
        padding: 0.6em;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    /* galeria */
    .pinterest-grid {
        display: block;
    }
    
    .mobile-carousel {
        display: block;
    }
    
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .contact-item2 {
        width: 100%;
        margin-left: 0;
    }

    /* projects */
    .main-content {
        display: flex;
        flex-direction: column;
    }

    .filters-project {
        max-width: 100%;
        position: static;
    }
    
    .search-form {
        gap: 5px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .search-form div{
        min-width: 100%;
    }

    #btn-search-proyect-content label{
        display: none;
    }

    #btn-search-proyect-content button{
        width: 100%;
    }
    
    .property-card {
        flex-direction: column;
        position: relative;
        max-height: 800px;
        max-width: 100%;

    }
    
    .property-features{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .property-image {
        width: 100%;
    }
    
    .property-detail-content {
        grid-template-columns: 1fr;
    }
    
    .property-detail-generals,
    .property-detail-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-map-home iframe{
        height: 450px;
    }

    .services-grid {
        display: flex;
        flex-direction: column;
    }

    .property-card-projects-grid{
        height: 700px;

    }

    .team-grid-even {
        display: flex;
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
    }

    .header-left h2{
        width: 100%;
        font-size: 0.9em;
    }

    .header-right{
        display: none;
    } 

}


/* galeria */
@media (max-width: 1200px) {
    .pinterest-grid {
        columns: 4 250px;
    }
}

@media (max-width: 900px) {
    .pinterest-grid {
        columns: 3 220px;
    }
    
    .modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .modal-info {
        flex: none;
        text-align: center;
        max-height: 40vh;
        font-size: .8em;
    }
}
