:root {
    /* Colors based on Grupo Ave Logo */
    --primary-color: #FFC107;
    --secondary-color: #000000;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --light-gray: #F5F5F5;

    /* Typography */
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.contact-header {
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #25D366;
}

/* Hero Section / Carousel */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Urbanization Projects */
.urbanization-projects {
    padding: 80px 20px;
    text-align: center;
}

.urbanization-projects h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.urbanization-projects>p {
    margin-bottom: 50px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.project-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Project Carousels */
.project-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.project-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-carousel-item.active {
    opacity: 1;
}

.project-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste específico para imágenes que se ven muy arriba (mucho cielo) */
.project-carousel-item img.adjust-bottom {
    object-position: center 70%;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
    background-image: url('../images/footer_bg.png');
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Footer Brand Column */
.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Links Column */
.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Contact Column */
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-list .icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

.contact-list a {
    color: #ccc;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* --- New Pages Styles --- */

/* Page Headers / Heros */
.page-header {
    background-color: #333;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Specific Hero Backgrounds (Placeholders - User to provide images) */
.hero-topografia {
    background-image: url('../images/hero-topografia.webp');
}

.hero-avaluos {
    background-image: url('../images/avaluos-comerciales-fiscales.webp');
}

.hero-construccion {
    background-image: url('../images/hero-construccion.webp');
}

.hero-calculadoras {
    background-image: url('../images/hero-calculadoras.webp');
}

/* Topography Content */
.topography-content {
    padding: 60px 20px;
}

.services-grid-topo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-category h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.service-category ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-category ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Avalúos Styles */
.avaluos-services {
    padding: 60px 20px;
    text-align: center;
}

.avaluos-services h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    margin-top: 15px;
    color: var(--secondary-color);
}

.learn-more {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-list li {
    margin-bottom: 15px;
}

.cta-support {
    padding: 60px 20px;
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.support-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.support-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Construcción Styles */
.planning-importance {
    padding: 60px 20px;
    background-color: #fff;
}

.planning-importance h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.highlight-text {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.1rem;
}

.construction-services {
    padding: 40px 20px;
    background-color: var(--secondary-color);
    color: #fff;
}

.services-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-box {
    border: 2px solid var(--primary-color);
    padding: 20px 40px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.financing-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--light-gray);
}

.bank-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.bank-logo {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.development-concepts {
    padding: 60px 20px;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.concept-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.concept-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.concept-card h4 {
    margin-bottom: 15px;
    color: #555;
}

.featured-project {
    padding: 60px 20px;
    background-color: #fff;
}

.project-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.project-showcase img {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-info ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Calculator Styles */
.calculator-section {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.calculator-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-container h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.instructions {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.calc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.header-row {
    font-weight: bold;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 4px;
    border-bottom: none;
}

.calc-input,
.calc-input-length {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff9c4;
    /* Yellow background as requested */
    width: 100%;
}

.calc-result,
.calc-result-length {
    font-weight: bold;
    color: #333;
}

.calc-total {
    margin-top: 20px;
    text-align: right;
    font-size: 1.2rem;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.calc-notes {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.credits {
    text-align: right;
    font-style: italic;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
        padding: 20px;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 8px;
    }
}

.services-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-box {
    border: 2px solid var(--primary-color);
    padding: 20px 40px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.financing-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--light-gray);
}

.bank-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.bank-logo {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.development-concepts {
    padding: 60px 20px;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.concept-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.concept-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.concept-card h4 {
    margin-bottom: 15px;
    color: #555;
}

.featured-project {
    padding: 60px 20px;
    background-color: #fff;
}

.project-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.project-showcase img {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-info ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Calculator Styles */
.calculator-section {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.calculator-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-container h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.instructions {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.calc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.header-row {
    font-weight: bold;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 4px;
    border-bottom: none;
}

.calc-input,
.calc-input-length {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff9c4;
    /* Yellow background as requested */
    width: 100%;
}

.calc-result,
.calc-result-length {
    font-weight: bold;
    color: #333;
}

.calc-total {
    margin-top: 20px;
    text-align: right;
    font-size: 1.2rem;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.calc-notes {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.credits {
    text-align: right;
    font-style: italic;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
        padding: 20px;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .header-row {
        display: none;
    }

    .project-showcase {
        flex-direction: column;
    }
}

/* Spacing for Topography Page */
.learn-more-section {
    padding: 60px 20px;
    margin-bottom: 40px;
    /* Added spacing */
}

.cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--light-gray);
    margin-top: 40px;
    /* Added spacing */
}

.cta-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.project-list {
    margin-bottom: 40px;
}

.project-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.project-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    text-align: center;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
    width: 250px;
    background-color: #1DA851;
    padding-right: 25px;
}

.whatsapp-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-text {
    white-space: nowrap;
    opacity: 0;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease 0.1s;
    color: #fff;
    font-family: var(--font-main);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

/* Pulse Effect */
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50px;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float:hover::after {
    animation: none;
}