/* style.css */

:root {
    --ocean-blue: #0b3954;
    --wave-blue: #45969b;
    --sand-light: #f9f6f0;
    --sand-dark: #e3d5b8;
    --text-dark: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--sand-light);
}

.section-title {
    font-size: 2rem;
    color: var(--ocean-blue);
    margin-bottom: 30px;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(11, 57, 84, 0.7), rgba(11, 57, 84, 0.7)), url('supertubos-bg.jpg') center/cover no-repeat;
    background-color: var(--ocean-blue); /* Fallback */
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero .logo {
    margin-bottom: 20px;
}

.hero .logo img {
    max-width: 220px;
    height: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* WHY SECTION */
.why-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--sand-light) 0%, var(--white) 100%);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--wave-blue);
    background: rgba(69, 150, 155, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.why-section .section-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.why-intro {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    align-items: center;
    margin-bottom: 35px;
}

.why-lead {
    font-size: 1.1rem;
    color: var(--ocean-blue);
    margin-bottom: 10px;
}

.why-photo {
    position: relative;
}

.why-photo img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(11, 57, 84, 0.25);
}

.why-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: var(--white);
    color: var(--ocean-blue);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.why-feature {
    background: var(--white);
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(11, 57, 84, 0.15);
}

.why-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wave-blue), var(--ocean-blue));
    color: var(--white);
}

.why-icon svg {
    width: 22px;
    height: 22px;
}

.why-feature h3 {
    color: var(--ocean-blue);
    margin-bottom: 8px;
}

.why-quote {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 45px 40px 28px;
    background: linear-gradient(135deg, var(--ocean-blue), #14587a);
    color: var(--white);
    border-radius: 20px;
    font-size: 1.05rem;
    font-style: italic;
    box-shadow: 0 20px 40px rgba(11, 57, 84, 0.25);
}

.why-quote::before {
    content: "\201C";
    position: absolute;
    top: 0;
    left: 30px;
    font-size: 5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--wave-blue);
}

.why-quote footer {
    margin-top: 20px;
    font-style: normal;
    font-weight: bold;
}

.why-quote footer span {
    display: block;
    font-weight: normal;
    font-size: 0.9rem;
    opacity: 0.8;
}

.why-closing {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--ocean-blue);
}

@media (max-width: 800px) {
    .why-intro {
        grid-template-columns: 1fr;
    }

    .why-photo img {
        height: 200px;
    }

    .why-quote {
        padding: 55px 25px 30px;
    }
}

/* STATS GRID */
.section-head {
    margin-bottom: 30px;
}

.section-head .section-title {
    font-size: 2rem;
    margin-bottom: 0;
}

.stats-section {
    padding: 50px 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--white);
    padding: 24px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
    border-top: 4px solid var(--wave-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(11, 57, 84, 0.15);
}

.stat-card h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--wave-blue);
}

.stat-label {
    font-weight: bold;
    color: var(--ocean-blue);
    margin: 4px 0 8px;
}

/* GUIDE SECTION */
.guide-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--sand-light) 100%);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
}

.rule-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
}

.rule-number {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--wave-blue), var(--ocean-blue));
}

.rule-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 4px;
}

/* VIDEOS */
.video-section {
    padding: 50px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.video-container {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
}

.video-container h2 {
    font-size: 1.1rem;
    color: var(--ocean-blue);
    margin-bottom: 14px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* SURF & WILDLIFE INFO */
.info-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--sand-light) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.info-block {
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
}

.info-block h3 {
    color: var(--ocean-blue);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.info-block p {
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tags span {
    background: rgba(69, 150, 155, 0.12);
    color: var(--ocean-blue);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* SURVEY */
.survey-section {
    padding: 50px 0;
}

.survey-container {
    max-width: 700px;
}

.survey-form {
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
}

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

.form-group > label,
.form-group .check {
    display: block;
    font-weight: 600;
    color: var(--ocean-blue);
    margin-bottom: 6px;
}

.optional {
    font-weight: normal;
    color: #888;
}

.survey-form input[type="text"],
.survey-form select,
.survey-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sand-dark);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--sand-light);
}

.survey-form input:focus,
.survey-form select:focus,
.survey-form textarea:focus {
    outline: 2px solid var(--wave-blue);
    border-color: transparent;
}

.scale {
    display: flex;
    gap: 10px;
}

.scale-item {
    flex: 1;
    cursor: pointer;
}

.scale-item input {
    position: absolute;
    opacity: 0;
}

.scale-item span {
    display: block;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background: var(--sand-light);
    border: 1px solid var(--sand-dark);
    font-weight: bold;
    color: var(--ocean-blue);
}

.scale-item input:checked + span {
    background: linear-gradient(135deg, var(--wave-blue), var(--ocean-blue));
    color: var(--white);
}

.scale-item input:focus-visible + span {
    outline: 2px solid var(--wave-blue);
}

.scale-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #888;
}

.hp {
    position: absolute;
    left: -9999px;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(135deg, var(--wave-blue), var(--ocean-blue));
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.survey-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
}

.survey-ok {
    background: #e3f4ea;
    color: #1d6b3b;
}

.survey-error {
    background: #fbe7e7;
    color: #9b2c2c;
}

/* FOOTER & CTA */
.cta-footer {
    background: linear-gradient(135deg, var(--ocean-blue), #14587a);
    color: var(--white);
    padding: 22px 0;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-grid, .info-grid, .rules-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

/* ADMIN */
.admin-body {
    background: var(--sand-light);
    min-height: 100vh;
}

.admin-login {
    max-width: 380px;
    margin: 12vh auto 0;
    padding: 0 20px;
}

.admin-login h1 {
    color: var(--ocean-blue);
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.admin-login input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sand-dark);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--sand-light);
}

.admin-bar {
    background: linear-gradient(135deg, var(--ocean-blue), #14587a);
    color: var(--white);
    padding: 14px 0;
}

.admin-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logout {
    background: var(--white);
    color: var(--ocean-blue);
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: bold;
    cursor: pointer;
}

.admin-main {
    padding-top: 30px;
    padding-bottom: 40px;
}

.admin-table-wrap {
    margin-top: 25px;
    overflow-x: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 57, 84, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--sand-light);
}

.admin-table th {
    color: var(--ocean-blue);
    background: var(--sand-light);
    white-space: nowrap;
}
