/* 
* Melovoar.pro - Consultoría de Gestión de Propiedades Residenciales
* Estilos principales
*/

/* ---------- Reset y Estilos Base ---------- */
:root {
    --primary: #3B7EA1;
    --primary-dark: #2C5D7C;
    --primary-light: #6AAED2;
    --secondary: #E67E22;
    --secondary-dark: #D35400;
    --accent: #2ECC71;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --gray: #95A5A6;
    --light-gray: #F5F9FC;
    --text: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------- Header & Navegación ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-link {
    margin-left: 25px;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 30px;
    height: 30px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    padding-top: 120px;
    padding-bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 100px;
}

.hero-content {
    width: 50%;
    padding-right: 30px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.hero-content p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    width: 45%;
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ---------- Services Section ---------- */
.services {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.service-card:hover:before {
    height: 100%;
}

.service-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary);
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.service-link:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover:after {
    margin-left: 10px;
}

/* ---------- Benefits Section ---------- */
.benefits {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    padding: 100px 0;
}

.benefits-wave-top,
.benefits-wave-bottom {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.benefits-wave-top {
    top: 0;
}

.benefits-wave-bottom {
    bottom: 0;
}

.benefits .section-title,
.benefits .section-subtitle {
    color: var(--white);
}

.benefits .section-title:after {
    background-color: var(--white);
}

.benefits-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
}

.benefits-image {
    flex: 1;
}

.benefits-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefits-content {
    flex: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.benefit-icon {
    flex-shrink: 0;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.benefit-text h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.benefit-text p {
    color: var(--white);
    opacity: 0.8;
}

/* ---------- Process Section ---------- */
.process {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.process-timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    width: calc(50% - 40px);
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 20px;
    order: -1;
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--gray);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    padding: 100px 0;
    background-color: var(--primary-light);
    color: var(--white);
    position: relative;
}

.testimonials-wave-top,
.testimonials-wave-bottom {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.testimonials-wave-top {
    top: 0;
}

.testimonials-wave-bottom {
    bottom: 0;
}

.testimonials .section-title,
.testimonials .section-subtitle {
    color: var(--white);
}

.testimonials .section-title:after {
    background-color: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 50px auto 30px;
    position: relative;
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    color: var(--text);
    position: relative;
    margin-top: 30px;
}

.testimonial-quote {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    opacity: 1;
    transform: scale(1.3);
}

/* ---------- FAQ Section ---------- */
.faq {
    padding: var(--section-padding);
    background-color: var(--white);
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 600;
    flex: 1;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* ---------- CTA Section ---------- */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-content p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--secondary);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 100px 0 80px;
    background-color: var(--dark);
    color: var(--white);
    position: relative;
}

.contact-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 30px;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
    text-align: left;
}

.contact .section-title:after {
    margin-left: 0;
    background-color: var(--primary-light);
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--light);
    opacity: 0.8;
}

.contact-map {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 126, 161, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-container label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ---------- Newsletter Section ---------- */
.newsletter {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.newsletter-content p {
    color: var(--gray);
    margin-bottom: 25px;
}

.newsletter-form {
    margin-top: 30px;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.newsletter-form .checkbox-container {
    justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    height: 45px;
}

.footer-col p {
    color: var(--light);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light);
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.7;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--light);
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--white);
    padding: 15px 0;
    z-index: 9999;
    display: none;
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ---------- Scroll Top Button ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        margin: 10px 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-content {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-container {
        flex-direction: column;
    }
    
    .benefits-image, .benefits-content {
        width: 100%;
    }
    
    .process-timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        order: 0;
        margin-right: 0;
        margin-left: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p:first-child {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        border-radius: var(--border-radius);
    }
    
    .newsletter-form .btn {
        margin-top: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        right: 15px;
        bottom: 15px;
    }
}