/* 
   =================================================
   VARIABLES & THEME CONFIGURATION
   ================================================= 
*/
:root {
    --contrast: #222222;
    --contrast-2: #575760;
    --contrast-3: #b2b2be;
    --base: #f0f0f0;
    --base-2: #f7f8f9;
    --base-3: #ffffff;
    --accent: #1e73be;
    
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --form-bg: #E5E7EB;
    --form-left-bg: #2361E8;
    --map-bg: #EEEEEE;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--base-3);
    color: var(--contrast);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #ffffff !important; }

/* 
   =================================================
   HEADER & NAVIGATION
   ================================================= 
*/
.site-header {
    background-color: #1e73be;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.inside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-image {
    width: 210px;
    height: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu > li > a {
    color: #ffffff;
    font-weight: 400;
    font-size: 15px;
    padding: 10px 15px;
    transition: color 0.3s;
}

.nav-menu > li > a:hover,
.current-menu-item > a {
    color: #e0e0e0;
}

.dropdown {
    position: relative;
}
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a5f9e;
    min-width: 176px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
}
.dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sub-menu li a:hover {
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.1);
}

.menu-item-contacto-outline a {
    border: 1px solid #ffffff;
    border-radius: 9999px;
    color: #ffffff;
    padding: 10px 24px !important;
}

.menu-item-contacto-outline a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item-contacto-outline-face a,
.menu-item-contacto-outline-insta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 19px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 0 !important;
}

.menu-item-contacto-outline-face a {
    background-color: #1455d6;
}

.menu-item-contacto-outline-insta a {
    background-color: #ff0069;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

/* 
   =================================================
   HERO SECTION
   ================================================= 
*/
.hero-section {
    position: relative;
    padding-top: 165px;
    padding-bottom: 165px;
    background-image: url('BG/Cuarto2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    min-height: 660px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.47); /* matching overlay color #00000078 is close to 0.47 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 45px;
    line-height: 48px;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 
   =================================================
   BUTTONS
   ================================================= 
*/
button,
input[type="submit"],
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white !important;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.btn i {
    margin-right: 8px;
}

/* 
   =================================================
   CONTACT CARDS (Exactly from live CSS)
   ================================================= 
*/
.contact-cards-wrapper {
    padding: 60px 0;
}

.section-title {
    font-size: 45px;
    line-height: 48px;
    margin-bottom: 40px;
    color: #000000;
}

.figole-contact-section {
    padding: 3rem 0;
}

.figole-contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.figole-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .figole-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .figole-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

.contact-card {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 28px;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-circle {
    transform: scale(1.1);
}

.icon-circle.bg-green { background-color: #dcfce7; color: #16a34a; }
.icon-circle.bg-blue { background-color: #dbeafe; color: #2563eb; }
.icon-circle.bg-purple { background-color: #f3e8ff; color: #9333ea; }
.icon-circle.bg-orange { background-color: #ffedd5; color: #ea580c; }

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.contact-card .subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-card .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 15px;
}

.contact-card .info-text {
    font-weight: 600;
    color: var(--contrast);
    margin-bottom: 5px;
}

.contact-card .info-small {
    font-size: 0.85rem;
    color: #6b7280;
}

/* 
   =================================================
   FORM SECTION
   ================================================= 
*/
.form-section-bg {
    background-color: var(--form-bg);
    padding: 50px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-left {
    background-color: var(--form-left-bg);
    border-radius: 15px;
    padding: 30px;
}

.text-4xl { font-size: 2.25rem; }
.lg\:text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-blue-200 { color: #bfdbfe; }
.space-y-4 > * + * { margin-top: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-white { color: #fff; }

.form-right {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.wpcf7-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.wpcf7-submit {
    margin-top: 10px;
}

/* 
   =================================================
   MAP SECTION
   ================================================= 
*/
.map-section-wrapper {
    padding: 80px 0;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 900px) {
    .map-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.map-info {
    background-color: var(--map-bg);
    border-radius: 15px;
    padding: 25px;
}

.flex { display: flex; }
.items-start { align-items: flex-start; }
.space-x-4 > * + * { margin-left: 1rem; }
.font-semibold { font-weight: 600; }
.text-gray-600 { color: #4b5563; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* 
   =================================================
   FOOTER
   ================================================= 
*/
.site-footer {
    background-color: #1d2734;
    color: #ffffff;
    border-top: none;
}

.site-footer a, 
.site-footer h4, 
.site-footer h5, 
.site-footer h6, 
.site-footer p,
.site-footer strong {
    color: #ffffff;
}

.site-footer a:hover {
    color: #e0e0e0;
}

.footer-widgets {
    padding: 60px 0;
}

.footer-widgets-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-widgets-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widgets h4, .footer-widgets h5, .footer-widgets h6 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widgets ul {
    list-style: none;
}

.footer-widgets ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 1.2em;
    transition: all 0.3s;
}

.social-fb { background-color: #1455d6; }
.social-ig { background-color: #ff0069; }
.social-wa { background-color: #25D366; }
.social-mail { 
    background-color: #f5f5f5; 
}
.social-links a.social-mail {
    color: #000000 !important;
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.site-info {
    background: #2e3d51;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 
   =================================================
   FLOATING WHATSAPP
   ================================================= 
*/
.botonwhatss {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-pill__button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    background-color: #25D366;
    border-radius: 24px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-pill__button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-pill__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background-color: #25D366;
    opacity: 0;
    animation: pill-pulse 2s infinite;
    pointer-events: none;
}

@keyframes pill-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.05); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@media only screen and (max-width: 600px) {
    .botonwhatss {
        bottom: 20px;
        right: 10px;
    }
    .whatsapp-pill__button {
        height: 50px;
        padding: 16px;
    }
    .whatsapp-pill__text {
        display: none;
    }
}

/* 
   =================================================
   RESPONSIVE LAYOUT (Tablets & Mobile)
   ================================================= 
*/

/* TABLET & MOBILE SHARED (up to 1024px) */
@media only screen and (max-width: 1024px) {
    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }
    .main-navigation {
        width: 0;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a5f9e;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-menu > li {
        width: 100%;
    }
    .nav-menu > li > a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    .dropdown.active .sub-menu {
        display: block;
    }
    .nav-menu > li.menu-item-contacto-outline > a {
        display: inline-block !important;
        width: auto !important;
        margin-top: 10px;
        border-bottom: none !important;
    }
    .nav-menu > li.menu-item-contacto-outline-face > a,
    .nav-menu > li.menu-item-contacto-outline-insta > a {
        display: inline-flex !important;
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        border-bottom: none !important;
        margin-right: 10px;
    }

    /* Hero Section Tablet Defaults */
    .hero-section {
        min-height: 500px;
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .hero-title {
        font-size: 38px;
        line-height: 42px;
    }

    /* Contact Section Title adjustments */
    .section-title {
        font-size: 38px;
        line-height: 42px;
    }

    /* Footer adjustments for Tablet (2 columns) */
    .footer-widgets-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* MOBILE ONLY OPTIMIZATION (up to 767px) */
@media only screen and (max-width: 767px) {
    /* Hero Section Mobile Defaults */
    .hero-section {
        min-height: 450px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .hero-title {
        font-size: 32px;
        line-height: 38px;
    }
    .hero-subtitle {
        font-size: 20px;
    }

    /* Contact Section adjustments */
    .section-title {
        font-size: 32px;
        line-height: 38px;
    }
    .text-4xl, .lg\:text-5xl {
        font-size: 2rem;
    }

    /* Footer adjustments for Mobile (1 column, centered) */
    .footer-widgets-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-widgets ul {
        padding: 0;
    }
}
