/* 
  Core Design System & Styles 
  Project: Static Responsive Web
*/

:root {
    /* Color Palette - Premium & Modern */
    --color-bg: #0f172a;
    /* Slate 900 */
    --color-surface: #1e293b;
    /* Slate 800 */
    --color-primary: #38bdf8;
    /* Sky 400 */
    --color-accent: #f472b6;
    /* Pink 400 */
    --color-text: #f8fafc;
    /* Slate 50 */
    --color-text-muted: #94a3b8;
    /* Slate 400 */
    --color-border: #334155;
    /* Slate 700 */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(56, 189, 248, 0.5);
    background-color: #7dd3fc;
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

/* CTA Button Specifics */
.btn-cta {
    background-color: #cbd5e1;
    background: linear-gradient(to bottom, #f1f5f9, #cbd5e1);
    color: #0f172a !important;
    border-radius: 14px;
    padding: 0.8rem 2.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Sections */
main {
    flex: 1;
    /* Pushes footer down */
    padding-top: var(--header-height);
    /* Offset for fixed header */
}

section {
    padding: 5rem 0;
}

.hero {
    text-align: left;
    padding: 10rem 0 8rem;
    background: linear-gradient(to right, rgba(0, 3, 36, 0.9) 0%, rgba(0, 3, 36, 0.7) 50%, rgba(0, 0, 0, 0.1) 100%), url('../portada.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 0 2.5rem 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Component Styles (Header/Footer placeholders) */
/* These will be loaded dynamically, but styles live here */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #000324;
    /* Match logo background */
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .btn-cta {
    font-family: 'Montserrat', sans-serif;
    background: #0056b3;
    color: #ffffff !important;

}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Branding Text Styles */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.brand-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0056b3;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #000000;
    border-top: none;
    padding: 4rem 0 0;
    /* Add top padding for main section */
    margin-top: auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    color: #ffffff;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Brand Column */
.brand-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo .footer-logo {
    max-width: 105px;
    height: auto;
    width: 100%;
    filter: brightness(0) invert(1);
    /* Ensure logo is white if it's black */
}

footer .brand-name {
    font-size: 1.1rem;
}

footer .brand-sub {
    font-size: 2.2rem;
}

/* If the logo image itself is already good, remove the filter above. 
   Assuming the user said "logo.jpg" which might be the original colored one, 
   but the reference image shows a white logo on dark background. 
   Ill leave standard scaling first. */

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primary);
}

/* Links & Contact Columns */
.footer-col h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Icon list styling */
.links-col ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.links-col ul li a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.links-col ul li a i {
    font-size: 0.8rem;
    /* Smaller chevron */
    border: 1px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1px;
    /* Optical center */
}

.links-col ul li a:hover {
    color: var(--color-primary);
}

.links-col ul li a:hover i {
    border-color: var(--color-primary);
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line address */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    /* Optically align with text top */
    width: 20px;
    display: flex;
    justify-content: center;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-logo {
        max-width: 150px;
    }
}

.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    color: #ffffff;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p,
.footer-right p {
    margin: 0;
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        text-align: center;
    }
}

/* Services Cards */
#servicios {
    background-color: #000324;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0;
    min-height: 585px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 57px;
    /* ~20% of 585px */
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 3, 36, 0.4);
    /* Dark blue overlay */
    z-index: 1;
    transition: background 0.3s ease;
}

.card:hover::before {
    background: rgba(0, 3, 36, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    text-transform: capitalize;
}

.card h3 {
    width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    color: #ffffff;
    background: rgba(0, 3, 36, 0.8);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    height: 11rem;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}



/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    header {
        /* Ensure header keeps its height and alignment */
        height: var(--header-height);
        padding: 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        color: #fff;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #000324;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-bottom: none;
    }

    .nav-links.active {
        max-height: 500px;
        /* Arbitrary large height */
        padding: 2rem 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}

/* Nosotros Section Styles */
#nosotros {
    background-color: #dbe4ea;
    /* Light gray-blue background from image */
    padding: 6rem 0;
}

.nosotros-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.nosotros-text {
    flex: 1;
    max-width: 550px;
}

.section-title {
    font-size: 2.2rem;
    color: #000324;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.section-description {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.7;
    text-align: justify;
    text-align-last: center;
    font-family: 'Montserrat', sans-serif;
}

.nosotros-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shields-wrapper {
    position: relative;
    height: 225px;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0rem;
}

.shield {
    position: absolute;
    width: 171px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.shield svg {
    width: 100%;
    height: auto;
    display: block;
}

.shield-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: 1.0rem;
    line-height: 1.3;
    width: 80%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Specific Shield Positioning */
.shield-left {
    left: 43px;
    z-index: 10;
    top: 20px;
}

.shield-right {
    right: 43px;
    /* Slight adjustment to spacing */
    z-index: 10;
    top: 20px;
}

.shield-center {
    z-index: 20;
    top: -10px;
    /* Elevated */
    width: 171px;
    /* Uniform size */
}

/* Values Label */
.values-title {
    color: #000324;
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0rem;
    text-transform: capitalize;
}

/* Responsive styles to stack on mobile */
@media (max-width: 992px) {
    .nosotros-content {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-text {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .section-title,
    .section-description {
        text-align: center;
    }

    .shields-wrapper {
        width: 100%;
        max-width: 500px;
        transform: scale(0.9);
        /* Scale down slightly for smaller screens */
    }
}

@media (max-width: 600px) {
    .shields-wrapper {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        transform: none;
    }

    .shield {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 200px;
    }

    .shield-center {
        width: 200px;
        order: -1;
        /* Keep visual hierarchy sane if needed, or simple stack */
    }
}

/* Logo Transition Section */
#logo-transition {
    background: linear-gradient(to bottom, #00264d, #000000);
    padding: 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transition-logo {
    display: block;
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Porqué Elegirnos Section */
#elegirnos {
    background-color: #dbe4ea;
    padding: 6rem 0;
    text-align: center;
}

#elegirnos .section-title {
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #000324;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon-wrapper {
    position: relative;
    width: 100px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-shield {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.2));
}

.feature-icon {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 2.5rem;
    /* Adjust based on shield size */
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000324;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.5;
    max-width: 300px;
}

@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Contact Section Redesign */
.contact-section {
    background-color: #000324;
    padding: 6rem 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    max-width: 1100px;
    margin: 0 auto;
    gap: 4rem;
    /* Spacing between panels */
    align-items: stretch;
}

/* Left Panel */
.contact-info-panel {
    flex: 1;
    min-width: 320px;
    background: linear-gradient(160deg, #0056b3 0%, #000324 100%);
    padding: 3rem;
    border-radius: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-info-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    text-transform: capitalize;
}

.contact-info-panel .contact-details {
    flex-grow: 1;
}

.contact-info-panel .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-panel .contact-item i {
    font-size: 1.5rem;
    width: 24px;
    margin-top: 5px;
}

.contact-info-panel .contact-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    word-break: break-all;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    text-transform: capitalize;
}

.contact-info-panel .social-links {
    display: flex;
    gap: 2rem;
}

.contact-info-panel .social-links a {
    color: #ffffff;
    font-size: 1.8rem;
    transition: transform 0.2s;
}

.contact-info-panel .social-links a:hover {
    transform: scale(1.2);
    color: var(--color-primary);
}

/* Right Panel */
.contact-form-panel {
    flex: 1;
    min-width: 320px;
    padding: 1rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    text-transform: capitalize;
}

.contact-form-panel form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(90deg, #001a33 0%, #000d1a 100%);
    border: 1px solid #1e293b;
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.btn-submit {
    background-color: #ffffff;
    color: #000324;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-info-panel {
        width: 100%;
        min-height: auto;
    }

    .contact-form-panel {
        width: 100%;
        padding: 0;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
    /* Slight adjustment for optical center */
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}