:root {
    --primary-blue: #0077B6;
    --fresh-green: #00A896;
    --light-gray: #F1F3F4;
    --dark-gray: #495057;
    --white: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utlity Classes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: #005f91;
    }
}

.btn-secondary {
    background-color: var(--fresh-green);
    color: var(--white);
}

@media (hover: hover) {
    .btn-secondary:hover {
        background-color: #008778;
    }
}

.btn-full {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    font-size: 1.1rem;
}

@media (hover: hover) {
    .btn-full:hover {
        background-color: #005f91;
    }
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo img {
    height: 50px; /* Slightly smaller to fit with text */
    width: auto;
}

.logo .highlight {
    color: var(--fresh-green);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

@media (hover: hover) {
    .nav-link:not(.btn-primary):hover {
        color: var(--primary-blue);
    }
}

.nav-link:not(.btn-primary).active {
    color: var(--primary-blue);
}

.nav-link:not(.btn-primary).active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.nav-link.btn-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 25px; /* Rounder borders */
    box-shadow: none;
}

@media (hover: hover) {
    .nav-link.btn-primary:hover,
    .nav-link.btn-primary.active {
        background-color: var(--primary-blue);
        color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
        transform: translateY(-2px);
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.nav-close {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px auto;
    transition: var(--transition);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
    filter: blur(5px);
    will-change: transform, opacity, filter;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-down {
    transform: translateY(-50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.85);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Page Load Animation for Header */
.header-reveal {
    transform: translateY(-100%);
    opacity: 0;
    animation: headerAppear 1s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes headerAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Staggered Delays for WordPress-style Entrance */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Staggered Delays for Grid Items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 119, 182, 0.4), rgba(0, 168, 150, 0.3)), url('img/PruebaHero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 100px; /* Header height offset */
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-left {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero .text-highlight {
    color: var(--light-gray);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
    transition: var(--transition);
}

@media (hover: hover) {
    .hero-img:hover {
        transform: translateY(-15px) scale(1.03);
        filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6));
    }
}

.hero-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--fresh-green); /* Using the website's green palette */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    top: 0;
    left: 0;
    opacity: 0.8;
    animation: blobMorph 8s linear infinite alternate;
}

@keyframes blobMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1) rotate(0deg);
    }
    33% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    66% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(1.1) rotate(15deg);
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--fresh-green);
    margin: 10px auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-top: 15px;
}

/* About Founder Section */
.about {
    background: var(--white);
    color: var(--text-color);
    padding: 100px 0 0 0; /* No bottom padding to align image to edge */
    overflow: visible;
    position: relative;
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: end; /* Align items to the bottom */
}

.founder-image {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Ensure image sticks to bottom */
}

.founder-image img {
    display: block;
    width: 100%; /* Changed from 115% to prevent overflow */
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(30px -10px 50px rgba(0,0,0,0.4));
    transform: scale(1.1);
    transform-origin: bottom center;
    transition: var(--transition);
    margin-bottom: 0; /* Remove negative margin to prevent overlap */
}

@media (hover: hover) {
    .founder-image:hover img {
        transform: scale(1.15);
        filter: drop-shadow(20px -5px 30px rgba(0,0,0,0.3));
    }
}

.section-header.text-left {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 50px; /* Space from the bottom for the text */
}

.founder-content {
    padding-bottom: 100px; /* Vertical centering feel for the text */
}

.about .section-header h2 {
    color: var(--primary-blue);
}

.about .section-subtitle {
    color: var(--dark-gray);
}

.divider.align-left {
    margin: 10px 0;
    background-color: var(--fresh-green);
}

.founder-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.founder-values {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.value-item i {
    color: var(--fresh-green);
    font-size: 1.5rem;
}

.value-item span {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Services Section */
.services {
    /* Parallax Background with Blue Overlay (Adjusted opacity to show image better) */
    background: linear-gradient(rgba(0, 119, 182, 0.75), rgba(0, 119, 182, 0.75)), url('img/fondoservicios.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--white); /* Default text color for this section */
}

/* Adjust Service Section Header for dark background */
.services .section-header h2 {
    color: var(--white);
}

.services .section-subtitle {
    color: var(--light-gray);
}

.services .divider {
    background-color: var(--fresh-green); /* Keep accent color or change to white if needed */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-blue);
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

@media (hover: hover) {
    .service-card:hover .service-icon {
        background-color: var(--primary-blue);
        color: var(--white);
    }
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: none;
    position: relative;
    border: 1px solid #e0e0e0;
}

.quote-icon {
    font-size: 24px;
    color: rgba(0, 119, 182, 0.2);
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.reviewer-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.reviewer-info span {
    font-size: 0.9rem;
    color: #777;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Give more space to form */
    gap: 50px;
    align-items: start;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details a {
    color: var(--dark-gray);
    transition: var(--transition);
    font-weight: 400;
}

@media (hover: hover) {
    .contact-details a:hover {
        color: var(--primary-blue);
    }
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.form-title {
    margin-bottom: 20px;
    color: var(--primary-blue);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
    background-color: var(--white);
}

/* Footer */
.footer {
    background-color: #2b2b2b;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    text-align: left;
}

.footer-logo a img {
    height: 100px; /* Increased size as requested */
    width: auto;
    transition: var(--transition);
}

@media (hover: hover) {
    .footer-logo a img:hover {
        transform: scale(1.05);
    }
}

.footer-logo .highlight {
    color: var(--fresh-green);
}

.copyright {
    color: #aaa;
    margin-bottom: 0;
    flex: 2;
}

.social-links {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--white);
}

@media (hover: hover) {
    .social-links a:hover {
        background-color: var(--primary-blue);
        transform: translateY(-3px);
    }
}

.social-links a:active {
    background-color: var(--primary-blue);
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-close {
        display: block;
    }

    .nav-list li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Adjust header for mobile */
    .header {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.4rem;
        z-index: 1001; /* Keep logo above menu if needed */
        position: relative;
    }
    
    .logo img {
        height: 40px;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
        order: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero-right {
        order: 1;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-image-wrapper {
        max-width: 100%;
    }

    /* Section adjustments */
    .section {
        padding: 50px 0;
    }

    /* About Section Mobile Adjustments */
    .about {
        background: var(--white);
        padding: 60px 0 0 0;
        text-align: center;
    }

    .founder-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .founder-content {
        padding: 0 20px 40px 20px;
    }

    .founder-image img {
        width: 100%;
        transform: none;
        max-width: 350px;
        margin: 0 auto 0 auto;
        filter: drop-shadow(0px -10px 20px rgba(0,0,0,0.3));
        margin-bottom: 0px;
        display: block;
    }

    .about .section-header {
        text-align: center;
    }

    .about .divider.align-left {
        margin: 10px auto;
    }

    .founder-values {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .service-card:hover {
        transform: none;
    }

    .contact-form-container {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer Mobile Adjustments */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-logo, .copyright, .social-links {
        flex: none;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .logo span {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 35px;
    }
}
/* Estimate Box Styling */
.estimate-container {
    margin: 25px 0;
    padding: 0 5px;
}

.estimate-box {
    background-color: rgba(0, 168, 150, 0.08);
    border: 2px dashed var(--fresh-green);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.estimate-label {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.estimate-value {
    display: block;
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.estimate-note {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .estimate-value {
        font-size: 1.5rem;
    }
}
/* Stats Counter Strip */
.stats-strip {
    background: linear-gradient(135deg, var(--primary-blue), #005f92);
    color: var(--white);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stats-item {
    padding: 10px;
}

.stats-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
}

.stats-plus {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fresh-green);
    margin-left: 2px;
    line-height: 1;
}

.stats-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .stats-number {
        font-size: 3rem;
    }
    .stats-plus {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .stats-strip {
        padding: 50px 0;
    }
}

/* Form Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: fadeIn 0.3s ease;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form {
    position: relative;
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
    animation: scale-up 0.5s ease;
}

.modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-loader {
    height: 4px;
    width: 100%;
    background: #f1f1f1;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.modal-loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #3498db;
    animation: progress 4s linear forwards;
}

@keyframes scale-up {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}
