/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap');

/* Global Reset & Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f1faee; /* Honeydew Background */
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* New Color Palette */
:root {
    --primary-color: #1d3557; /* Berkeley Blue */
    --secondary-color: #457b9d; /* Cerulean */
    --accent-color: #e63946; /* Red Pantone - for hovers and emphasis */
    --light-accent: #a8dadc; /* Non-photo Blue */
    --background-light: #f1faee; /* Honeydew */
    --text-dark: #1d3557; /* Berkeley Blue for text */
    --text-light: #f8f8f8;
    --white: #FFFFFF;
    --light-gray: #f1faee;
    --medium-gray: #a8dadc;
    --dark-gray: #1d3557;
}

/* Utility Classes */
.bg-light-gray-f8 {
    background-color: #f8f8f8 !important; /* Ensures override */
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Urbanist', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.8em;
    font-weight: 600;
}

h1 {
    font-size: 2.8em;
    line-height: 1.2;
    font-weight: 700; /* Slightly bolder for h1 */
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 1em;
    margin-top: 0;
    padding-top: 0;
    font-weight: 700; /* Slightly bolder for h2 */
}

h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
    font-size: 1.05em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(29, 53, 87, 0.1); /* Berkeley Blue shadow for consistency */
    z-index: 1000;
    /* Removed fixed height and padding-bottom, will be handled by nav content */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img#logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color); /* Berkeley Blue */
    transition: color 0.3s ease;
}

.logo:hover span {
    color: var(--accent-color); /* Red hover effect */
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--primary-color); /* Berkeley Blue */
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: var(--accent-color); /* Red background for hover */
    color: var(--white); /* White text */
    text-decoration: none;
    transform: translateY(-2px);
}

nav ul li a.active {
    background-color: var(--primary-color); /* Blue background for active */
    color: var(--white); /* White text */
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile contact styling in nav */
.mobile-contact {
    margin-left: 15px;
}

.mobile-link {
    background-color: var(--accent-color) !important; /* Red background */
    color: var(--white) !important;
    padding: 8px 15px !important;
    border-radius: 25px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.mobile-link:hover {
    background-color: var(--primary-color) !important; /* Berkeley Blue on hover */
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.4);
}

.mobile-link i {
    font-size: 1.2em;
    color: var(--white);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--accent-color); /* Red hover for mobile toggle */
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 10;
        padding-bottom: 25px;
    }
    
    nav.mobile-active ul {
        display: flex;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 20px;
        background-color: var(--light-gray);
        border-radius: 5px;
        margin: 0 20px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: var(--accent-color); /* Red background on mobile hover */
        color: var(--white);
        transform: none; /* Remove translateY on mobile */
    }
    
    nav ul li a.active {
        background-color: var(--primary-color); /* Blue background for active on mobile */
        color: var(--white);
        transform: none; /* Remove translateY on mobile */
    }
    
    .mobile-contact {
        margin: 10px 20px 0 20px;
    }
    
    .mobile-link {
        justify-content: center;
        padding: 12px !important;
        font-size: 1.1em;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    background-image: url('../assets/images/atiempohero.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(29, 53, 87, 0.85), rgba(29, 53, 87, 0.75));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
}

.hero-title-top {
    color: var(--accent-color) !important;
    font-size: 2em !important;
    margin-bottom: 0.3em;
    font-weight: 500;
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-title-main {
    color: white !important;
    font-size: 4em !important;
    margin-bottom: 0.5em;
    font-weight: 700;
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    color: var(--light-gray);
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 5px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-buttons {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* About Us Section */
#nosotros {
    padding: 60px 0;
    margin: 0;
    background-color: #f8f8f8; /* New background color */
}

#servicios {
    padding: 60px 0;
    margin: 0;
}

#especialistas {
    margin: 0;
    background-color: var(--secondary-color); /* Cerulean background */
    padding: 60px 0; /* Ensure section has padding */
}

#especialistas h2 {
    color: var(--white); /* Make title white for dark background */
}

#especialistas .cta-secondary .btn-primary {
    background-color: var(--accent-color); /* Red button */
    border-color: var(--accent-color);
}

#especialistas .cta-secondary .btn-primary:hover {
    background-color: var(--primary-color); /* Dark blue hover for button */
    border-color: var(--primary-color);
}

#nosotros .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

#nosotros .about-text {
    flex: 1;
}

#nosotros .about-image {
    flex: 1;
    max-width: 500px;
}

#nosotros .about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.15);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: var(--light-gray); /* Placeholder bg */
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Colored Section (for specialists, testimonials) */
.colored-section {
    background-color: var(--background-light); /* Honeydew - default for colored sections */
    margin: 0;
    width: 100%;
    padding: 60px 0;
}

.colored-section h2 {
    color: var(--primary-color);
    padding-top: 0;
    margin-top: 0;
}

.colored-section .container {
    margin: 0 auto;
    padding: 40px 20px;
}

.colored-section + section {
    margin-top: 0;
    padding-top: 60px;
}

section + .colored-section {
    margin-top: 0;
}

/* Specialists Section */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for potentially thinner boxes */
    gap: 40px; /* Increased gap */
    margin-top: 40px; /* Increased top margin */
    text-align: center;
    max-width: 1000px; /* Limit max width of the grid itself */
    margin-left: auto;
    margin-right: auto;
}

.specialty-item {
    background-color: var(--white); /* White background for boxes */
    padding: 30px 25px; /* Adjusted padding */
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.12); /* Berkeley Blue shadow, softer */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    border: 2px solid transparent; /* For hover effect consistency */
}

.specialty-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(29, 53, 87, 0.18);
    border-color: var(--accent-color); /* Red border on hover */
}

.specialty-item i {
    font-size: 2.8em;
    color: var(--accent-color); /* Red icon */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.specialty-item:hover i {
    transform: scale(1.1);
}

.specialty-item h3 {
    font-size: 1.4em;
    color: var(--primary-color); /* Dark Blue text for title */
    margin-bottom: 12px;
}

.specialty-item p {
    color: var(--text-dark); /* Standard dark text for description */
    font-size: 1.0em;
    line-height: 1.6;
}

.cta-secondary {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* More Services Section */
#mas-servicios .detailed-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.service-detail-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.service-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(29, 53, 87, 0.15);
    background-color: rgba(168, 218, 220, 0.1);
    border-left-color: var(--accent-color);
}

.service-detail-item h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-detail-item h4 i {
    margin-right: 12px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.service-detail-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Testimonials Section */
#testimonios {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px;
    justify-content: flex-start; /* Cambio de center a flex-start */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    scroll-snap-type: x mandatory; /* Añadir scroll snap */
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px;
    box-sizing: border-box;
    scroll-snap-align: start; /* Añadir scroll snap align */
}

.testimonial p {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

.testimonial h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: auto;
}

/* Testimonial Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    gap: 15px;
    width: 100%;
}

.testimonial-controls button {
    background-color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.testimonial-controls button i {
    font-size: 1.2em;
}

/* Contact Section */
#contacto {
    background-color: var(--white);
    padding: 60px 0; /* Standard vertical padding for a full-width section */
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    /* background-color: var(--white); */ /* Background now handled by #contacto */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.contact-form {
    flex: 1.5;
    width: 100%;
}

.contact-info {
    flex: 1;
    width: 100%;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.2em;
    width: 20px; /* Align icons */
    text-align: center;
}

.contact-info a {
    color: var(--secondary-color);
}
.contact-info a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(29, 53, 87, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .checkbox-label {
    font-weight: normal;
    font-size: 0.9em;
    display: inline-block;
    margin-left: 5px;
}
.form-group input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* Styling for form submission messages */
.form-message {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    font-size: 0.95em;
    border: 1px solid;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.form-message.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Form validation styles */
/* Campos vacíos - light blue */
.form-group input[type="text"]:placeholder-shown,
.form-group input[type="email"]:placeholder-shown,
.form-group input[type="tel"]:placeholder-shown,
.form-group textarea:placeholder-shown {
    border-color: var(--light-accent);
    box-shadow: 0 0 0 0.1rem rgba(168, 218, 220, 0.15);
}

/* Campos con contenido válido - cerulean */
.form-group input[type="text"]:not(:placeholder-shown):valid,
.form-group input[type="email"]:not(:placeholder-shown):valid,
.form-group input[type="tel"]:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.1rem rgba(69, 123, 157, 0.15);
}

/* Campos con contenido inválido - red */
.form-group input[type="text"]:not(:placeholder-shown):invalid,
.form-group input[type="email"]:not(:placeholder-shown):invalid,
.form-group input[type="tel"]:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.1rem rgba(230, 57, 70, 0.15);
}

/* Campos en focus - color primario */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 5px rgba(29, 53, 87, 0.3) !important;
}

/* reCAPTCHA v3 badge positioning (optional) */
.grecaptcha-badge {
    visibility: hidden;
}

/* If you want to show a custom reCAPTCHA notice */
.recaptcha-notice {
    font-size: 0.8em;
    color: var(--dark-gray);
    margin-top: 10px;
    text-align: center;
}

.recaptcha-notice a {
    color: var(--secondary-color);
}

.map-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid var(--medium-gray);
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--light-gray);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    box-sizing: border-box;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
}

footer p {
    margin-bottom: 5px;
    font-size: 0.95em;
}

footer a {
    color: var(--light-accent);
}

footer a:hover {
    color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.footer-col p a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col p a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.floating-buttons a {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.float-call.btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #457b9d !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-align: center !important;
}

a.float-call.btn:hover {
    transform: scale(1.1) !important;
    background-color: #3a6c8a !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

a.float-call.btn i {
    font-size: 30px !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.float-whatsapp {
    background-color: #25D366 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-align: center !important;
}

.float-whatsapp:hover {
    background-color: #1DAE54 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

.float-whatsapp i {
    font-size: 30px !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    #nosotros .about-content {
        flex-direction: column;
    }
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    .info-point {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body section .container,
    body section.colored-section .container,
    body section.mid-page-cta .container {
        width: 100% !important;
        padding: 40px 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    body section#nosotros .container,
    body section#servicios .container,
    body section#mas-servicios .container,
    body section#testimonios .container,
    body section#contacto .container {
        padding: 40px 20px !important;
    }

    .service-item, 
    .specialty-item,
    .service-detail-item,
    .testimonial {
        margin: 10px 20px !important;
        padding: 20px !important;
    }

    .contact-wrapper {
        padding: 20px !important;
    }

    .hero-content {
        padding: 20vh 20px 0 20px !important;
    }

    nav ul li a {
        padding: 10px 20px !important;
        margin: 0 !important;
    }

    .testimonial-slider {
        padding: 20px !important;
    }

    .mobile-menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 10;
        padding-bottom: 25px;
    }
    nav.mobile-active ul {
        display: flex;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 10px;
        background-color: var(--light-gray);
        border-radius: 5px;
    }
    .hero {
        margin-top: 60px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.8em; }
    .services-grid, .specialties-grid, #mas-servicios .detailed-services {
        grid-template-columns: 1fr;
    }
    .testimonial-slider {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .testimonial {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 20px;
    }
    header {
        height: 60px;
    }
    a.float-call.btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
    }
    
    a.float-call.btn i {
        font-size: 24px !important;
    }
    
    .float-whatsapp {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
    }
    
    .float-whatsapp i {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    body section .container,
    body section.colored-section .container,
    body section.mid-page-cta .container {
        padding: 30px 20px !important;
    }

    .hero-title-top {
        font-size: 1.4em !important;
    }
    .hero-title-main {
        font-size: 2.2em !important;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .floating-buttons a, a.float-call.btn, .float-whatsapp {
        width: 50px;
        height: 50px;
    }
    .hero-content {
        padding-top: 20vh;
    }
}

@media (max-width: 1200px) {
    #mas-servicios .detailed-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #mas-servicios .detailed-services {
        grid-template-columns: 1fr;
    }
}

/* Utility class for smooth scroll target adjustment */
section[id] {
    scroll-margin-top: 70px; /* Adjust based on actual fixed header height */
}

main {
    position: relative;
    background: var(--white);
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
}

section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Mid-page CTA */
.mid-page-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.mid-page-cta .container {
    padding: 60px 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mid-page-cta h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2.2em;
    padding-top: 0;
}

.mid-page-cta p {
    color: var(--light-gray);
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mid-page-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.mid-page-cta .btn-primary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.mid-page-cta .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.mid-page-cta .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.mid-page-cta .btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .container,
    .colored-section .container,
    .mid-page-cta .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0 auto;
    }

    .service-item, 
    .specialty-item,
    .service-detail-item,
    .testimonial {
        margin: 10px 0;
    }

    .contact-wrapper {
        padding: 20px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav ul li a {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 25px;
    }

    .service-item, 
    .specialty-item,
    .service-detail-item,
    .testimonial {
        margin: 10px 25px;
    }
}

/* Botones flotantes */
.float-call,
.float-whatsapp {
    position: fixed !important;
    bottom: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-align: center !important;
}

.float-call {
    background-color: var(--secondary-color) !important;
    left: 20px !important;
}

.float-whatsapp {
    background-color: #25D366 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-align: center !important;
}

.float-whatsapp:hover {
    background-color: #1DAE54 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

.float-whatsapp i {
    font-size: 30px !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
    .float-call,
    .float-whatsapp {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
    }
    
    .float-call {
        left: 15px !important;
    }
    
    .float-whatsapp {
        right: 15px !important;
    }
    
    .float-call i,
    .float-whatsapp i {
        font-size: 24px !important;
    }
}

.mobile-contact {
    margin-left: 15px;
}

.mobile-link {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 15px !important;
    border-radius: 25px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-link:hover {
    background-color: var(--accent-color);
    text-decoration: none !important;
    transform: translateY(-2px);
}

.mobile-link i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .mobile-contact {
        margin: 10px 0;
    }
    
    .mobile-link {
        justify-content: center;
        padding: 12px !important;
    }
}

section {
    margin: 0;
    padding: 0;
}

#nosotros, #servicios, #mas-servicios {
    width: 100%;
    margin: 0 auto;
}

#nosotros .container, #servicios .container, #mas-servicios .container {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
        height: 90vh;
    }

    .hero-content {
        justify-content: flex-start;
        padding: 15vh 20px 0 20px;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    section {
        padding: 40px 0;
    }

    .colored-section .container,
    #nosotros .container,
    #servicios .container,
    #mas-servicios .container,
    #testimonios .container,
    #contacto .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .service-item, 
    .specialty-item,
    .service-detail-item,
    .testimonial {
        margin: 10px 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 12vh 20px 0 20px;
    }
}

@media (max-width: 768px) {
    #testimonios {
        padding: 0;
    }

    .testimonial-slider {
        padding: 20px;
        gap: 0;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial {
        scroll-snap-align: center;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .testimonial-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 20px auto;
        padding: 0 20px;
    }

    .testimonial-controls button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background-color: var(--white);
        color: var(--primary-color);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .testimonial-controls button:hover {
        background-color: var(--accent-color);
        color: var(--white);
    }

    /* Fix right padding for all sections */
    .colored-section,
    #testimonios,
    #contacto,
    .mid-page-cta {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .colored-section .container,
    #testimonios .container,
    #contacto .container,
    .mid-page-cta .container {
        width: calc(100% - 40px) !important;
        margin: 0 auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
}

/* Testimonials Section - Mobile Adjustments */
@media (max-width: 768px) {
    #testimonios .container {
        padding: 40px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .testimonial-slider {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .testimonial {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Contact Section - Mobile Adjustments */
    #contacto .container {
        width: 100% !important;
        padding: 40px 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .contact-wrapper {
        padding: 20px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Footer - Mobile Adjustments */
    footer {
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-content {
        padding: 0 !important;
        width: 100% !important;
    }

    .footer-col {
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .testimonial-slider {
        margin: 0 !important;
        padding: 0 !important;
    }

    .testimonial {
        padding: 20px !important;
    }

    .contact-wrapper {
        padding: 15px !important;
    }
}

/* Pricing Plans Section */
#precios {
    padding: 80px 0 100px 0; /* Increased top and bottom padding */
    background-color: var(--accent-color); /* Red Pantone background */
    width: 100%;
    margin: 0; /* Ensure no margin constraints */
}

/* Override container for pricing section to center properly */
#precios.container {
    width: 100%; /* Full width */
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Remove auto margins */
    padding: 0; /* Remove container padding, we'll handle it in the content */
    box-sizing: border-box;
}

/* Content wrapper for centering */
#precios .pricing-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#precios h2 {
    color: var(--white); /* White text on red background */
    text-align: center;
    margin-bottom: 1em;
}

#precios .subtitle {
    color: var(--light-gray); /* Light text for subtitle */
    text-align: center;
    margin-bottom: 50px; /* Increased margin */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced min-width for thinner boxes */
    gap: 50px; /* Increased gap for better spacing */
    margin-top: 30px;
    width: 100%;
    justify-content: center;
    max-width: 800px; /* Constrain grid width */
    margin-left: auto;
    margin-right: auto;
}

.pricing-plan {
    background-color: var(--primary-color); /* Berkeley Blue background */
    padding: 25px 20px; /* Reduced padding to make thinner */
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    border: 3px solid transparent;
    width: 100%; /* Takes full width of its grid column */
    box-sizing: border-box; /* Ensure padding and border are included in width */
    overflow: hidden; /* For hover effect */
}

.pricing-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-plan:hover::before {
    left: 100%; /* Shine effect on hover */
}

.pricing-plan:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color); /* Red border on hover */
}

.pricing-plan i {
    font-size: 2.5em; /* Slightly smaller icon for thinner design */
    color: var(--white); /* White icon */
    margin-bottom: 15px; /* Reduced margin */
    transition: transform 0.3s ease;
}

.pricing-plan:hover i {
    transform: scale(1.1) rotate(5deg); /* Icon animation on hover */
}

.pricing-plan h3 {
    font-size: 1.3em; /* Slightly smaller for thinner design */
    color: var(--white); /* White text on dark background */
    margin-bottom: 12px; /* Reduced margin */
    font-weight: 600;
}

.pricing-plan .price {
    font-size: 2.2em; /* Reduced size for thinner design */
    font-weight: bold;
    color: var(--white); /* White price */
    margin-bottom: 12px; /* Reduced margin */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-plan .description {
    font-size: 0.95em; /* Slightly smaller text */
    color: var(--light-gray); /* Light gray text for readability */
    margin-bottom: 20px; /* Reduced margin */
    min-height: 50px; /* Reduced min-height */
    line-height: 1.4;
}

.pricing-plan .btn {
    width: 100%;
    padding: 12px; /* Reduced padding for thinner design */
    font-size: 1em; /* Slightly smaller button text */
    font-weight: 600;
    background-color: var(--accent-color); /* Red button */
    color: var(--white);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-plan .btn:hover {
    background-color: var(--white);
    color: var(--accent-color);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
#faq {
    padding: 60px 0;
    background-color: #f8f8f8; /* New background color */
}

#faq h2 {
    color: var(--primary-color);
}

#faq .subtitle {
    color: var(--text-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 30px auto 0 auto;
    padding: 0 15px;
}

.faq-item {
    background-color: var(--primary-color); /* Dark Blue background */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Adjusted shadow for dark bg */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* To ensure child backgrounds don't peek out with border-radius */
}

.faq-item:hover {
    background-color: var(--secondary-color); /* Medium Blue on hover */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background-color: var(--accent-color); /* Red background for active item */
}

.faq-question {
    background-color: transparent; /* Inherits from .faq-item */
    color: var(--white); /* White text */
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 25px; /* Slightly increased padding */
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease; /* Only transition background if needed, parent handles main bg */
}

/* Remove specific hover style for question button, let parent .faq-item:hover handle it */
.faq-question:hover {
    /* background-color: rgba(230, 57, 70, 0.05); REMOVED */
    /* color: var(--accent-color); REMOVED */
}

.faq-question i { /* Chevron icon */
    font-size: 1em; /* Adjusted size */
    transition: transform 0.3s ease;
    color: var(--honeydew); /* Lightest color for icon */
}

/* Icon color on hover will be inherited or remain --honeydew */
.faq-question:hover i {
    /* color: var(--accent-color); REMOVED */
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--honeydew); /* Icon remains honeydew when expanded */
}

/* Question button when expanded - text color is already white, parent .faq-item.active handles bg */
.faq-question[aria-expanded="true"] {
    /* background-color: rgba(29, 53, 87, 0.05); REMOVED */
    /* color: var(--primary-color); REMOVED */
}

.faq-answer {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 0; /* Ensure no top padding when collapsed */
    padding-bottom: 0; /* Ensure no bottom padding when collapsed */
    font-size: 1em;
    color: var(--white);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    background-color: transparent;
}

.faq-answer p {
    margin: 0;
    /* padding-top: 5px; REMOVED - will be handled by .faq-item.active .faq-answer padding */
}

.faq-item.active .faq-answer {
    padding-top: 15px; /* Add padding when active */
    padding-bottom: 20px; /* Add padding when active */
    /* max-height will be set by JS */
}

/* Responsive adjustments for pricing and FAQ if needed */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Each plan takes full width */
        justify-items: center; /* Center the single item in its track */
        gap: 30px; /* Adjust gap for stacked items if needed */
    }
    .faq-grid {
        padding: 0 15px; /* Add some padding on mobile */
    }
}

.float-call {
    background-color: var(--secondary-color) !important;
    left: 20px !important;
}

.float-whatsapp {
    background-color: #25D366 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-align: center !important;
}

.float-whatsapp:hover {
    background-color: #1DAE54 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

.float-whatsapp i {
    font-size: 30px !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* New Hero Section Styles */
.hero-new {
    background-color: var(--primary-color); /* Berkeley Blue */
    padding: 120px 0 60px; /* Adjust top padding to account for fixed header, bottom padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh; /* Ensure it takes up a good portion of the viewport */
    width: 100%;
    box-sizing: border-box;
}

.hero-new-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    width: 90%;
    max-width: 1300px; /* Max width for the content */
    margin: 0 auto;
    align-items: center; /* Changed from flex-start to center */
}

.hero-info-left {
    flex: 1; /* Takes up available space */
    min-width: 300px; /* Minimum width before wrapping */
    padding-right: 20px; /* Spacing between columns */
}

.hero-info-left .hero-title-main {
    font-size: 2.8em;
    color: var(--white); /* Changed for dark background */
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: left;
}

.hero-info-left .hero-title-main .highlight {
    color: var(--accent-color); /* Red Pantone for highlight */
}

.hero-info-left .hero-title-sub {
    font-size: 1.3em;
    color: var(--light-gray); /* Changed for dark background */
    margin-bottom: 2em;
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
}

.info-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border for dark background */
}

.info-point:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.8em;
    color: var(--light-accent); /* Non-photo Blue for icons on dark bg */
    margin-right: 15px;
    width: 30px; /* Fixed width for icon alignment */
    text-align: center;
}

.info-text h4 {
    font-size: 1.1em;
    color: var(--white); /* Changed for dark background */
    margin: 0 0 5px 0;
    font-weight: 600;
}

.info-text p {
    font-size: 0.95em;
    color: var(--light-gray); /* Changed for dark background */
    margin: 0;
    line-height: 1.5;
}

.hero-form-right {
    flex: 1; /* Takes up available space */
    min-width: 320px; /* Minimum width before wrapping */
    display: flex;
    justify-content: center; /* Center the form container if it's narrower */
}

.form-container-hero {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.1); /* Berkeley Blue shadow */
    width: 100%;
    max-width: 550px; /* Max width of the form */
}

.form-container-hero h3 {
    font-size: 1.8em;
    color: var(--primary-color); /* Berkeley Blue */
    text-align: center;
    margin-bottom: 25px;
}

.form-container-hero .form-row {
    display: flex;
    gap: 15px; /* Space between half-width inputs */
    margin-bottom: 15px;
}

.form-container-hero .form-group {
    margin-bottom: 15px; /* Default bottom margin */
}

.form-container-hero .form-group.half-width {
    flex: 1; /* Each takes half of the row */
    margin-bottom: 0; /* Remove bottom margin as .form-row has it */
}

.form-container-hero label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9em;
    color: var(--text-dark);
}

.form-container-hero input[type="text"],
.form-container-hero input[type="email"],
.form-container-hero input[type="tel"],
.form-container-hero select,
.form-container-hero textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray); /* Light Blue border */
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fdfdff; /* Very light background for inputs */
}

.form-container-hero input:focus,
.form-container-hero select:focus,
.form-container-hero textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Berkeley Blue */
    box-shadow: 0 0 0 2px rgba(29, 53, 87, 0.2); /* Berkeley Blue focus ring */
}

.form-container-hero select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%231D3557%22/%3E%3C/svg%3E'); /* Berkeley Blue arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for arrow */
}

.form-container-hero textarea {
    resize: vertical;
    min-height: 80px;
}

.form-container-hero .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px; /* Add some top margin */
}

.form-container-hero .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto; /* Override full width */
    accent-color: var(--primary-color); /* Berkeley Blue for checkbox */
}

.form-container-hero .checkbox-label {
    font-size: 0.9em;
    font-weight: normal;
    margin-bottom: 0; /* Override label default margin */
}

.form-container-hero .checkbox-label a {
    color: var(--secondary-color); /* Cerulean */
    text-decoration: underline;
}

.form-container-hero .checkbox-label a:hover {
    color: var(--accent-color); /* Red Pantone on hover */
}

.form-container-hero .checkbox-label a:hover {
    color: var(--accent-color); /* Red Pantone on hover */
}

.form-container-hero .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    background-color: var(--secondary-color); /* Cerulean */
}

.form-container-hero .btn-primary:hover {
    background-color: var(--accent-color); /* Red Pantone */
    color: var(--white);
}

/* Responsive adjustments for hero-new */
@media (max-width: 992px) {
    .hero-new-container {
        flex-direction: column;
        gap: 30px;
    }
    .hero-info-left {
        padding-right: 0; /* Remove right padding when stacked */
        display: block; /* Change from flex to block for more reliable centering */
        text-align: center; /* Center all children */
    }
    .hero-info-left .hero-title-main,
    .hero-info-left .hero-title-sub {
        text-align: center;
    }
    .info-point { /* Styling for .info-point within the 992px media query */
        text-align: left; /* Ensures text inside info-point is left-aligned */
        max-width: 100%; /* Prevents overflow */
        /* display: flex; is inherited from global .info-point for its own children (icon and text) */
        /* No width: auto or inline-flex needed here with the parent flex centering */
    }
    .form-container-hero {
        max-width: 100%; /* Allow form to take full width */
    }
}

@media (max-width: 768px) {
    .hero-new {
        padding-top: 100px; /* Adjust padding for smaller fixed header */
    }
    .hero-info-left {
        display: block; /* Change from flex to block for more reliable centering */
        text-align: center; /* Center all children */
        padding-right: 0; /* Remove right padding when stacked */
    }
    .hero-info-left .hero-title-main {
        font-size: 2.2em;
    }
    .hero-info-left .hero-title-sub {
        font-size: 1.1em;
    }
    .info-point {
        width: auto; /* Reset width */
        max-width: 320px; /* Set a reasonable max width */
        margin: 0 auto 20px auto; /* Center horizontally with margin auto */
        text-align: left; /* Keep internal text left-aligned */
        display: flex; /* Ensure it remains flex for icon and text layout */
        align-items: flex-start; /* Keep the flex alignment */
    }
    .form-container-hero .form-row {
        flex-direction: column; /* Stack form fields in a row */
        gap: 15px; /* Keep gap between stacked fields */
    }
    .form-container-hero .form-group.half-width {
         margin-bottom: 15px; /* Add back bottom margin when stacked */
    }
    .form-container-hero .form-group.half-width:last-child {
         margin-bottom: 0;
    }
}

/* Make sure the old .hero styles don't interfere if any remain */
.hero {
    /* display: none; */ /* Or remove old .hero class from HTML if it was missed */
} 