/* Modern Styles for GGTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a; /* Slate 900 */
    --secondary: #334155; /* Slate 700 */
    --accent: #0ea5e9; /* Sky 500 */
    --accent-hover: #0284c7; /* Sky 600 */
    --light: #f8fafc; /* Slate 50 */
    --dark: #020617; /* Slate 950 */
    --text-muted: #64748b; /* Slate 500 */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.wrapper {
    position: relative;
    width: 100%;
    /* max-width removed for full-width layout */
    margin: 0;
    background: var(--white);
    /* box-shadow removed as it's no longer a boxed layout */
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    height: auto;
}

/* Visibility Control */
.desktop-header { display: flex; }
.mobile-header { display: none; }

@media (max-width: 992px) {
    .desktop-header { display: none !important; }
    .mobile-header { display: flex !important; }
}

.top-bar .logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.025em;
}

.top-bar-item {
    display: flex;
    align-items: center;
}

.top-bar-icon i {
    color: var(--accent);
    font-size: 3.1rem; /* Reduced by approx 6px */
    margin-right: 15px;
    display: flex; /* alignment fix */
    align-items: center;
}

/* Force Flaticon pseudo-elements to respect size */
.top-bar-icon [class^="flaticon-"]::before,
.top-bar-icon [class*=" flaticon-"]::before {
    font-size: 3.1rem !important;
}

@media (max-width: 992px) {
    .top-bar {
        padding: 0 !important; /* Zero padding */
        background: #fff;
        height: auto;
        position: relative; 
        z-index: 2000;
        display: block !important;
    }

    .mobile-header {
        display: flex !important;
        flex-wrap: wrap;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important; /* Zero margin */
        padding: 5px 0 !important; /* Minimal padding for breathing room */
    }
    
    .mobile-header .logo h3 {
        font-size: 1.25rem !important; /* Larger text */
        color: var(--primary);
        word-wrap: break-word; 
        margin: 0 !important; /* Zero margin */
        line-height: 1.1;
        padding: 2px 0;
    }

    .mobile-contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; 
        width: 100%;
        margin: 0 !important; /* Zero margin */
        padding: 0 !important;
    }

    .mobile-contact-item i {
        font-size: 1.2rem;
        color: var(--accent);
        margin: 0 !important; /* Remove all margins (including left) */
        line-height: 1;
    }

    /* Remove annoying library margin from flaticon pseudo-elements */
    .mobile-contact-item [class^="flaticon-"]::before,
    .mobile-contact-item [class*=" flaticon-"]::before {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mobile-contact-item p, .mobile-contact-item a {
        font-size: 0.55rem;
        line-height: 1.1;
        color: var(--secondary);
        text-align: center;
        word-break: break-word; 
        overflow-wrap: break-word;
        margin: 0 !important; /* Zero margin */
        padding: 0 !important;
    }
}

.top-bar-text h3 {
    font-size: 1.1rem; /* Larger Title */
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary);
}

.top-bar-text p {
    font-size: 0.7rem; /* Mid-point size for Horarios */
    color: var(--text-muted);
    margin: 0;
}

.top-bar-text a {
    font-size: 1rem; /* Links (Phone/Mail) stay large */
    color: var(--text-muted);
    margin: 0;
}

/* --- Navigation --- */
.nav-bar {
    background: #343a40; /* Custom Gray to match Bootstrap bg-dark */
    box-shadow: var(--shadow);
    padding: 0;
}

.nav-bar.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(52, 58, 64, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent);
}

/* --- Carousel --- */
/* --- Carousel Modernization --- */
.carousel {
    margin-bottom: 0;
    height: 80vh; /* 80% viewport height globally */
    min-height: 500px;
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
    position: relative;
    background: #000; /* Fallback */
}

/* --- Carousel Controls (Fix & Style) --- */
.carousel-control-prev,
.carousel-control-next {
    z-index: 20; /* Ensure on top of caption/overlay */
    width: 60px; /* Specific width for buttons */
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 20px; /* Spacing from edge */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent);
    opacity: 1;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 10px; /* Tighten margin */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.9; /* Slight transparency to blend with black bg if needed */
}

/* Modern Overlay using pseudo-element to guarantee full coverage */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern gradient: Dark slate/blue tint */
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100% !important;
    height: 100%;
    z-index: 2; /* Above the overlay */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    background: transparent !important; /* Remove box background */
    padding: 0 15px; /* Prevent text touching edges on mobile */
    text-align: center;
}

.carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    
    opacity: 0; 
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
    
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.carousel-caption .btn {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
    
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    
    background: var(--accent);
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    color: var(--white);
    
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    background: var(--white);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from { 
        transform: translateY(40px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* --- Page Header --- */
.page-header {
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 0;
    text-align: center;
    background: var(--primary);
    color: var(--white);
}

.page-header h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header p {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- About Section --- */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-img {
    position: relative;
    margin-bottom: 1.5rem;
}

.about-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.about-img img:hover {
    transform: scale(1.02);
}

/* New Collage Composition Styles */
.about-composition {
    position: relative;
    height: 400px; 
    width: 100%;
    margin-bottom: 2rem;
}

.about-composition img {
    position: absolute;
    width: 55%; 
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-composition .about-img-1 {
    top: 0;
    left: 0;
    z-index: 1;
}

.about-composition .about-img-2 {
    bottom: 40px; 
    right: 20px; 
    z-index: 2;
    border: 5px solid var(--white);
}

.about-composition img:hover {
    z-index: 10;
    transform: scale(1.1);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* --- Features (Mission/Vision) --- */
.feature {
    padding: 5rem 0;
    background: var(--light);
}

.feature-item {
    background: #06132f;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.feature-icon [class^="flaticon-"]::before {
    font-size: 1.5rem;
    color: #06132f;
    margin: 0;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-text p {
    color: rgba(255,255,255,0.9);
}

/* --- Services --- */
.service {
    padding: 5rem 0;
}

.service-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    transform: scale(1.0);
}

.service-item:hover .service-img img {
    transform: scale(1.05);
}

.service-overlay {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    opacity: 0;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.service-text {
    background: var(--white);
    padding: 1.5rem;
    color: var(--primary);
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.service-text h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}

.service-item.value-left {
    background: #06132f;
}

.service-item.value-left .service-text {
    background: transparent;
    color: var(--white);
    border: none;
}

.service-item.value-left .service-text h3 {
    color: var(--white);
}

/* --- Buttons --- */
.boton, .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.boton:hover, .btn:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- FAQ / Accordion --- */
.card {
    border: none;
    margin-bottom: 1rem;
    background: transparent;
}

.card-header {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius) !important;
    padding: 0;
    overflow: hidden;
}

.card-link {
    display: flex; /* Allow flexbox alignment */
    justify-content: space-between; /* Space between text and arrow */
    align-items: center;
    padding: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

.card-link:hover {
    color: var(--accent);
    background: var(--light);
}

/* Arrow Indicator */
.card-link::after {
    content: "\f078"; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

/* Rotate arrow when open */
.card-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--accent); 
}
.card-link[aria-expanded="true"] {
    color: var(--accent);
}

.card-body {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    color: var(--secondary);
}

/* --- Contact Section --- */
.contact {
    padding: 5rem 0;
}

.contact .contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact .contact-item:hover {
    transform: translateY(-5px);
}

.contact .contact-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-right: 1.5rem;
    width: 50px;
    text-align: center;
}

.contact-text h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background: var(--light);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: var(--white);
}

/* --- Login Section --- */
.login {
    padding: 5rem 0;
}

.login-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.login-form input {
    margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
    margin-top: 3rem;
}

.footer h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.footer-contact p i {
    margin-right: 1.5rem;
    width: 25px;
    text-align: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
}

.footer .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
}

.footer .form-control:focus {
    background: rgba(255,255,255,0.2);
    box-shadow: none;
    border-color: rgba(255,255,255,0.3);
}

.footer .btn {
    background: var(--accent);
    width: 100%;
}

.copyright {
    margin-top: 3rem;
    padding: 2rem 0;
    background: rgba(0,0,0,0.2);
    text-align: center;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.back-to-top:hover {
    color: var(--white);
    transform: translateY(-5px);
}

/* --- WhatsApp Button --- */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: auto;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligned to left */
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-options {
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
    width: 280px;
}

.whatsapp-option {
    background-color: white;
    color: #075e54;
    padding: 12px 15px;
    border-radius: 10px; /* Softer corners */
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    line-height: 1.3;
}

.whatsapp-option:hover {
    background-color: #f0f9ff;
    transform: translateX(3px); /* Subtle shift */
    color: #0ea5e9; /* Accent color hover */
    text-decoration: none;
    border-color: #0ea5e9;
}

.whatsapp-option i {
    font-size: 1.4rem;
    margin-right: 12px;
    color: #25d366;
    flex-shrink: 0;
}

/* --- WhatsApp Message Bubble --- */
.whatsapp-message {
    background-color: #ffffff;
    padding: 12px 18px;
    border-radius: 15px; /* More rounded */
    border-bottom-left-radius: 5px; /* Subtle change for bubble effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #075e54;
    position: relative;
    white-space: nowrap;
    opacity: 0; 
    border: 1px solid #e2e8f0; /* Restored border for better visibility */
    /* Animation handled by JS */
}

/* Thought bubble arrow */
/* Thought bubble arrow */
.whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: -10px; 
    left: 20px; /* Align arrow with button which is now left-aligned */
    
    /* Triangle creation */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #ffffff; 
    
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.05));
}

/* --- Responsiveness adjustments --- */

/* Responsiveness adjustments */
@media (max-width: 992px) {
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .top-bar {
        display: none;
    }
}
